Review
Recall that call-by-value parameters never alter the value of the variable used in the call statement
If we want a function to alter a variable (or want to avoid the implicit copy of the variable’s value) we need to use the call-by-reference mechanism
Example uses:
- a function that reads in and sets the value of a variable, such as temperature
- a function that returns more than one value