7F.5. Summary

Parameters make information flow explicit in a program.

The standards for this course require you to use parameters. Do not use global variables for implicit information flow. Using global variables will cause you to lose many points. Obviously, you want to avoid that.

The standards for this course also require a function not to change the values of its call-by-value parameters. Marking the parameters const will prevent you from accidentally changing them.


Exercises