Let\'s say we have a class called object.
int main(){ object a; const object* b = &a; (*b); }
Question: b is a pointer to
const object* b = &a;
b will treat what it points to as const, i.e. it cannot change a
const
a
object* const b = &a;
b itself is const, i.e. it cannot point to other object address, but it can change a
object