7 votes 7 votes Consider the following declaration: int a, *b=&a, **c=&b; The following program fragment a=4; **c=5; does not change the value of a assigns address of $c$ to $a$ assigns the value of $b$ to $a$ assigns $5$ to $a$ Programming in C pointers programming-in-c isro2015 + – ajit asked Oct 12, 2015 ajit 4.7k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 13 votes 13 votes answer = option D In the above figure each '*' operator corresponds to a back edge. amarVashishth answered Oct 12, 2015 amarVashishth comment Share Follow See 1 comment See all 1 1 comment reply Prince Raj commented Jun 14, 2016 reply Follow Share a Assigning value to 'c' does not change anything as no variable is using the value of 'c' 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes option D is correct Hira Thakur answered Nov 13, 2015 Hira Thakur comment Share Follow See 1 comment See all 1 1 comment reply akanksha garg commented Jul 1, 2016 reply Follow Share How is option D correct? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes integer a. b is a pointer that points to a. c is a pointer to a pointer, and the latter is b. a = 4. dereference c twice, we reach a. $c\rightarrow b\rightarrow a$ (One $\rightarrow$ for each $*)$ So, a = 5. Option D JashanArora answered Dec 7, 2019 JashanArora comment Share Follow See all 0 reply Please log in or register to add a comment.