Ok so I got this question in one of our exams and I havn't a clue on how to answer it. Can someone please explain what the question is asking?
Thanks
b) If a program contains the main function
and another functionCode:void main() { int X=2, Y=11; func(X,&Y); printf("%d %d\n",X,Y); }
what two values will the main function print out?Code:void func(int P, int *Q) { int X; X=(*Q); P=X/3; (*Q)=P+1; }