Q. What is the output of the following?
Code:#define SQUARE(x) x*x
printf("%d", SQUARE(3+1));
β
Correct Answer: (B)
7
Explanation: Macro expands to 3+1*3+1 = 3+3+1 = 7 due to lack of parentheses.