void fun(int **ptr) { static int q = 10; ptr = &q; } int main() { int r = 20;…

void fun(int **ptr)

{

static int q = 10;

ptr = &q; }

int main()

{ int r = 20;

int p = &r;

fun(&p);

printf("%d", *p);

return 0; }

Output of the above program is:

  1. A.


    Null

  2. B.

    10

  3. C.

    20

  4. D.

    25

Attempted by 196 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…