Ok, and then
const pointer means that I can’t change the value, by this address, or address itself?
if you have a pointer to const you cannot change the content it is pointing to.
If you have a const pointer you cannot change what it is pointing to.
If you have a const pointer to const you can't change either.
char S[] = "Hello";
{
const char * const F = S;
// F = "1"; // illegal, const pointer
// F[0] = '1'; // illegal, pointer to const
}
{
char * const F = S;
// F = "1"; // illegal, const pointer
F[0] = '1'; // legal
}
{
const char * F = S;
F = "1"; // legal
// F[0] = '1'; // illegal, pointer to const
}