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
5
Answer:
-4
Explanation:
Dry Run:
g(3,-10)
{
x=3+(-10)=-7;
z=2*(-7)-(-10)=4
}
Similar questions