What is the difference between const int*, const int * const, and int const *?
What is the difference between const int*, const int * const, and int const *? I always mess up how to use const int* , const int * const , and int const * correctly. Is there a set of rules defining what you can and cannot do? const int* const int * const int const * I want to know all the do's and all don'ts in terms of assignments, passing to the functions, etc. You can use the "Clockwise/Spiral Rule" to decipher most C and C++ declarations. – James McNellis Jun 13 '10 at 20:49 cdecl.org is a great website which auto-translates C declarations for you. – Dave Gallagher Nov 2 '10 at 19:37 @Calmarius: start where the ...