View Feed
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12834 Members
Join this group to post and comment.

find the output of this code

#define MUL(a,b) a*b
#define Pow(a) a*a
int main()
int a=3;
int b=2;
printf("Ans: %d\n", MUL (MUL(a+1,b), Pow(b+1)));
return 0;
jigneshdgreat • Apr 24, 2012
Ans: 10
it gets evaluated as :a+1*b*b+1*b+1
deepu11111111 • Apr 26, 2012
Yes 10
Ans: 10!

Share this content on your social channels -