+ 1

I dont understand what is a pointer to a pointer if p is a pointer to a structure ( struct str* p

so p contain the adress of the structure using malloc but what does *p contain ?? what is the meaning of struct str **p; ??

14th Sep 2017, 10:23 PM
Rhila Meryeme
Rhila Meryeme - avatar
2 Antworten
+ 4
struct str v, *p, **p; p = &v; pp = &p; Here we have those relations : *p ==**pp == v pp == &p == &&v p == *pp == &v
15th Sep 2017, 8:58 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 1
Simple * Means VALUE AT &Means ADDRESS OF *P means the value which is stored in the variable. &P means the address of that variable. I think you got the answer
29th Sep 2019, 12:01 PM
Sankar Rao Mudadla
Sankar Rao Mudadla - avatar