Given a code snippet in C programming language as follows: int a = 10; int *p;…

Coal India Management Trainee CBT 2026

Given a code snippet in C programming language as follows: int a = 10; int *p; int **w; p = &a; which statement correctly assigns the address of 'p' to 'w'?

  1. A.

    w = p;

  2. B.

    w = &p;

  3. C.

    w = &&a;

  4. D.

    w = *p;

Attempted by 138 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…