Q58
What will be the output of the following C code? #include int foo(int, int); #define foo(x, y) x / y + x int main() int i = -6, j = 3; printf("%d ",foo(i + j, 3)); #undef foo printf("%d ",foo(i + j, 3)); int foo(int x, int y) return x / y + x;
A.
-8 -4
AnswerB.
Compile time error
C.
-8 -8
D.
Undefined behaviour
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board