Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi everyone The output of this code is 10, I want to know why **q prints 10? int x,*p,**q; x=10; p=&x q=&p; cout<<**q;
p points to x, which is assigned 10. q points to p, which points to x. *q returns p. Now you need to dereference that result to get to x. With parenthesis, you get: *(*q) == *p