#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));}
#define prod(a,b) a*b
void main()
{
int x=3, y=4;
printf("%d", prod(x+2, y-1));
}
15
10
12
11
View Answer
Workspace
Share
Copy Text
Copy URL
Answer : Option B
Explanation :
The macro expands and evaluates to as:x+2*y-1 => x+(2*y)-1 => 10
Be The First To Comment