Thanks guys!
I have read
salem and
xeddiex examples. At first glance, I have to admit it, I havent understand everything yet. But I will make an effort to understand both explanations and when I get stuck again, I will come back to ask questions. Here I understand that a
pointer to a pointer has to point to another
pointer's address.
If I understand, a pointer can also point to a pointer's address. Then what is the use of
pointer to a pointer, if a normal pointer can point to another pointer's address?
Comparing salem's example and xeddiex's example:
A pointer can point to a variable address ( ptr = &addr; ) as well to another pointer address (int *p2p = &p; ).
Will this pointer (int *p2p = &p; ) have the same function as the pointer (int **p2p2 = &p )?
Or did xeddiex mean (int **p2p = &p; )?
See how fast I get confused
fgw_three and
Mad_guy, thanks again. I will try drawing as well.
Afrinux