Consider the C program shown below.
#include < stdio.h >
#define print(x) print f(” % 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
Reveal answer
Fill a bubble to check yourself
