Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Programming and Data Structure Programming in C Pointer
What is the output of this C code?
#include
void main()
{
int k = 5;
int *p = &k;
int **m = &p;
printf(“%d %d %d\n”, k, *p, **m);
}
1
5 5 5
2
5 5 junk
3
5 junk junk
4
Compile time error