< C++ Language | Indirection
A reference (
int& riVar = iVar;) must always be initialized to some kind of existing storage, and the location of that storage cannot be changed.
However, the value stored at that location can be changed, so subsequently doing
riVar = 99; will cause
iVar to now contain
Additional information about reference variables (includes interactive examples)