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

A
This question is related to TCS Interview

Showing Answers 1 - 2 of 2 Answers

avula tirupathi rao

  • May 7th, 2005
 

answer is -2 so none is answer

  Was this answer useful?  Yes

laxmikanth

  • Feb 10th, 2006
 

First of all the program is not executed at all how can we expect the answer.

There is an error in the macro defination i.e = symbol in macro body.in the printf this (=)will be substitued and that will causes an error saying that some syntax error.

if = is not there in macro body then the result is -2 which is none of the given options.

  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