585 views
0 votes
0 votes

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));

   return 0;

}

Run on IDE

(A) 18
(B) 19
(C) 21
(D) 22

1 Answer

Related questions

0 votes
0 votes
1 answer
1
Debargha Mitra Roy asked 6 days ago
67 views
#include <stdio.h int main() { int a[3] = {1, 3, 5, 7, 9, 11}; int *ptr = a[0]; ptr += sizeof(int); printf("%d", *ptr); return 0; }(Assume size of int to be $2$ bytes.)T...
1 votes
1 votes
2 answers
2
1 votes
1 votes
2 answers
3
ermp888 asked Jul 1, 2018
519 views
13. What does the error "Null Pointer Assignment" mean and what causes this error?
0 votes
0 votes
1 answer
4
ermp888 asked Jun 30, 2018
679 views
6. Would the following program compile?main( ) { int a = 10, *j; void *k; j = k = &a; j++ ; k++; printf ("\n %u %u", j, k ) ; }Please explain above program with some exam...