# define prod(a,b)=a*bmain(){int x=2;int y=3;printf("%d",prod(x+2,y-10));}the output of the program isA. 8B. 6C. 7D. None

This question is related to TCS Interview

Showing Answers 1 - 1 of 1 Answers

Rohan

  • Feb 23rd, 2006
 

Ans is ( D )

   Macro just Substitutes its arguments so ,

prod ( x + 2 , y - 10 ) will be substituted by

  2+2*3-10 

so ans is 2+6-10=-2

None of the list given has ans is -2

has ans is  ( D )

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions