What\'s the difference between:
char * const
and
const char *
The const modifier is applied to the term immediately to its left. The only exception to this is when there is nothing to its left, then it applies to what is immediately on its right.
These are all equivalent ways of saying "constant pointer to a constant char":
const char * constconst char const *char const * constchar const const *