Double pointer const-correctness warnings in C
The reason why const can only be added one level deep is subtle, and is explained by Question 11.10 in the comp.lang.c FAQ. Briefly, consider this example closely related to yours: const int i; int *p; int const **z = &p; *z = &i; /* Now p points to i */ C avoids this problem … Read more