What is the output of this C code? #include <stdio.h> void main() { int k=5;…

ISRO Scientist/Engineer SC 2016

What is the output of this C code?

#include <stdio.h>
void main()
{
int k=5;
int *p=&k;
int **m=&p;
printf("%d %d %d\n", k, *p, **m);
}
  1. A.

    5 5 5

  2. B.

    5 5 junk

  3. C.

    5 junk junk

  4. D.

    Compile time error

Attempted by 1216 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…