Computer Science, asked by chetanac, 8 months ago

for the following code
int g(int x,int y){
x=x + y;
int z=2*x - y;
return z;
}
what does g(3,-10) evaluate to?​

Answers

Answered by susrutadas
5

Answer:

-4

Explanation:

Dry Run:

g(3,-10)

{

    x=3+(-10)=-7;

    z=2*(-7)-(-10)=4

}

Similar questions