4 ms·
int * const foo = baz; and int const * bar = baz; have different meaning. foo is a constant pointer (you can't change the address) while bar is a pointe
by Vogtinator 5y ago
int * const foo = baz;
and
int const * bar = baz;
have different meaning.
foo is a constant pointer (you can't change the address) while bar is a pointer to a constant int (you can't change the value it's pointing at).
However,
int const * bar;
is the same as
const int * bar;