Consider the following declaration:
int a, *b=&a, **c=&b;
The following program fragment
(A) does not change the value of a
(B) assigns address of c to a
(C) assigns the value of b to a
(D) assigns 5 to a
Explanation: *b=&a // b holds the address of a
**c=&b // c holds the address of b
**c = *(&b) means the value at the address of b which is equal to a.
**c = 5 // a is modified to 5
So, option (D) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.