1.

#define Cube(x) (x*x*x) Main() { Int A,b=3; A=cube(b++); Printf("%d %d",a,b); } What Should Be The Value Of A And B? My Calc A=4 But Syst A=6 How Pls Tell Me If You Know It?

Answer»

27 4 is the OUTPUT.

The call to the MACRO sets a = B*b*b with b = 3, 3 CUBED is 27 then b is incremented to 4 after the macro call.

27 4 is the output.

The call to the macro sets a = b*b*b with b = 3, 3 cubed is 27 then b is incremented to 4 after the macro call.



Discussion

No Comment Found