I was just doing my first app in C and i have this warning (edited) : unused variable pp
int compteur = 1;
int *p = &compteur;
int **pp = &p;
I was just trying to make pp pointing on the adress of the variable p
Forgive me if that’s a stupid question, but in my book they don’t talk about pointers on pointer.
Thanks
Well if that’s the only thing your program does, then yes, the compiler is correct to warn you about unused variables, because you’re not doing anything with them!
If you were to do e.g.
printf("%d\n", **p);, then the warning should go away.