1.

What will be the output of the following C code?#include <stdio.h> int calc(int, int); #define calc(p, q) p / q + p int main() { int a = -17, b = 12; printf("%d ",calc(a + b, 12)); #undef calc printf("%d n",calc(a + b, 12)); } int calc(int p, int q) { return p / q + p; }

A. Compilation Error
B. -17 12
C. -21 -5
D. Garbage value
E. None of these
Answer» D. Garbage value


Discussion

No Comment Found

Related MCQs