I understand that the const
keyword means that you can't change a variable's value so what does it mean if it used like this :
const char* const& message
I understand that the const
keyword means that you can't change a variable's value so what does it mean if it used like this :
const char* const& message
The first const stays for the pointer reference itself cannot be changed, so you cannot do something like:
message = &something;
the second const is for the content of the pointer, so you cannot do something like:
*message = something;