Evaluation strategy - Wikipedia
https://en.wikipedia.org/wiki/Evaluation_strategyIn call by value, the evaluated value of the argument expression is bound to the corresponding variable in the function (frequently by copying the value into a new memory region). If the function or procedure is able to assign values to its parameters, only its local variable is assigned—that is, anything passed into a function call is unchanged in the caller's scope when the function returns. In some cases, the term "call by value" is problematic, as the value which is passed is not the val…
Pass By Reference
www.cs.fsu.edu › ~myers › c++Pass By Reference. The local parameters are references to the storage locations of the original arguments passed in. Changes to these variables in the function will affect the originals; No copy is made, so overhead of copying (time, storage) is saved; const Reference Parameters: The keyword const can be used on reference parameters.