Basic facilities
- slide 17 : 42
References - Examples
Here we show a number of examples that illustrate various aspects of references
A variable becomes a reference to another variable.
No operator operates on a reference as such.
A function with reference parameters and reference return type.
Convenient references to long/deep fields.
Another example/exercise with C++ references
Pointers in combination with references
The
The C++ Programming Language
example on page 99-100 is also illustrative