Introduction to Programming (in C++) Subprograms: procedures and
Subprograms: parameter passing. Use call-by-value to pass parameters that must not be modified by the subprogram.. Use . call-by-reference. when the changes made by the subprogram must affect the variable to which the parameter is bound.