Next | ![]() ![]() |
38 |
Functions should avoid using global variables
Why do we have functions?
For modularity
Benefit 1: Understand the function in isolation
Benefit 2: Reuse the function in another program
continued...
Next | ![]() |
Copyright © 2002 M. J. Dominus |