Question: Given the following C/C++ code int f( int a, int b) { return (a+b); } void main(void) { int x,y; x=2; y=10; if(x>y) y=f(x,
Given the following C/C++ code int f( int a, int b) { return (a+b); } void main(void) { int x,y; x=2; y=10; if(x>y) y=f(x, ++x); else y=f(x, ++x) What is the final value of y in main if a. the arguments of function f() are evaluated from left to right: b. the arguments of function f() are evaluated from right to left:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
