GATE | GATE CS 2008 | Question 85
What is printed by the following C program?
$include <stdio.h> 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)); getchar(); } |
chevron_right
filter_none
(A) 18
(B) 19
(C) 21
(D) 22
Answer: (B)
Explanation: See Question 1 of https://www.geeksforgeeks.org/c-language-set-5/
Quiz of this Question
Recommended Posts:
- GATE | Gate IT 2008 | Question 28
- GATE | Gate IT 2008 | Question 16
- GATE | Gate IT 2008 | Question 15
- GATE | Gate IT 2008 | Question 14
- GATE | Gate IT 2008 | Question 12
- GATE | Gate IT 2008 | Question 11
- GATE | Gate IT 2008 | Question 10
- GATE | Gate IT 2008 | Question 9
- GATE | Gate IT 2008 | Question 8
- GATE | Gate IT 2008 | Question 7
- GATE | Gate IT 2008 | Question 6
- GATE | Gate IT 2008 | Question 17
- GATE | Gate IT 2008 | Question 27
- GATE | Gate IT 2008 | Question 26
- GATE | Gate IT 2008 | Question 25



