GATE 2008 CS – Question 60
What is printed by this C program?
int f(int x, int *py, int **ppz) {
int y,z;
**ppz += 1; z = **ppz;
*py += 2; y = *py;
x += 3;
return x+y+z;
}
void main() {
int c,*b,**a;
c=4; b=&c; a=&b;
printf("%d",f(c,b,a));
}Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) 19
Explanation
We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort