+ 1

Pointers

How do you initiate a pointer that points to another pointer and of what relevance is it

10th Mar 2018, 9:52 AM
akinlabi aderibigbe
akinlabi aderibigbe - avatar
1 Réponse
+ 1
To create an pointer pointing at a pointer you need two * instead of one: int i; //integer int *p = &i; //pointer to i int **pp = &p; //pointer to p Honestly I never used this feature and might be rarely useful, but in some cases you could need it.
10th Mar 2018, 11:34 AM
Aaron Eberhardt
Aaron Eberhardt - avatar