Find the output of
#include <stdio.h> void main() { int k =5; int *p = &k; int **m = &p; **m = 6; printf("%d",k); }
option b
Ans- 6
first k gets value = 5.
pointer p points to k i.e p has address of k.
pointer to pointer m has address of p.
**m=6; // it access the data of k and makes it 6.
print k // prints 6.
https://onlinegdb.com/rJVHW2Y_G
64.3k questions
77.9k answers
244k comments
80.0k users