Two ways of invoking functions:
- Call by value: The actual value is passed to the function, and changes made in the function do not affect the original variable.
- Call by reference: A reference (address) to the variable is passed to the function, and changes made in the function affect the original variable.
Figure: What are the two ways of invoking functions?