Q. 79 Consider the C program shown below.
#include <stdio.h> #defi ne print(x)printf(“%d”,x) int x; void Q (int z){ z+=x; print(z); } void p (int)y){ int x=)y+2; Q(x);)y=x-1; print(x); } main (void){ x=5; p(&x); print(x); }
The output of this program is
(A) 12 7 6
(B) 22 12 11
(C) 14 6 6
(D) 7 6 6
Answer: (A)
Explanation: