Consider the following declaration:
int a, *b=&a, **c=&b;
The following program fragment
a=4;
**c=5;
(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
Answer: (D)
Explanation: *b=&a // b holds the address of a
**c=&b // c holds the address of b
and a=4

**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
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
05 Apr, 2018
Like Article
Save Article