0 votes 0 votes Find the output of #include <stdio.h> void main() { int k =5; int *p = &k; int **m = &p; **m = 6; printf("%d",k); } 5 6 Junk value Compile time error Unknown Category uttarakhand-asst-prof-2018 programming-in-c + – gatecse asked Mar 2, 2018 • edited Mar 6, 2018 by go_editor gatecse 324 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Lakshman Bhaiya commented Mar 2, 2018 reply Follow Share K = 6 is the answer 1 votes 1 votes abhishekmehta4u commented Mar 6, 2018 reply Follow Share option b 1 votes 1 votes Please log in or register to add a comment.
1 votes 1 votes 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 Tarun kushwaha 1 answered Mar 4, 2018 Tarun kushwaha 1 comment Share Follow See all 0 reply Please log in or register to add a comment.