+ 9
Difference between *p , **p, ***p ?
9 Answers
+ 13
*p « pointer
**p « pointer to a pointer
***p « pointer to a pointer to a pointer
That last one is a mouthful, makes pointer start to sound weird :D
+ 13
Thanks,1st two ... clear.
How last one works ?
I mean where do we need to use ***p.
+ 11
Got it,Thanks alot sir .
+ 11
Fun fact: You can have an arbitrary number of '*'s.
+ 5
The first p has only one *.
The second p has two *.
The third p has the most *. It has 3, I repeat 3, *s.
Apologies... I couldn't resist posting this answer. đ
Seriously though... The other ppl answered this question appropriately.
+ 4
*p holds the address of the declared variable to *p
**p is called pointer to a pointer that means it (**p) holds the address of *p
***p is called pointers to a pointers to a pointers that holds the address of **p
+ 4
https://www.quora.com/What-is-the-difference-between-*p-**p-***p-in-pointers
u can clear your doubt here đđ
+ 2
***p stores the address that is assigned with **p
+ 2
If you use *p for a one dimensional array, you'd use **p for a 2d one, ***p for a 3d one, ****p for a 4d one etc.