I read about C++ reference variables and somewhere I found this:
A declaration of a const reference is redundant since reference can never be made to refer to another object.
what does it mean?
Here, for example, I can change the object that the reference is referring to:
void p(int& i) {
int a = 7,c = 0;
i = a;
}
So what does it mean that "Reference can never be made to refer to another object"?
thanks in advance.