Chapter 9. Variable Scope and Functions
But in the gross and scope of my opinion, This bodes some strange
eruption to our state.
—Shakespeare, Hamlet, Act I, Scene I
So far you have been using only global variables. These are variables
that can be set or used almost anywhere in the program. In this
chapter you learn about other kinds of variables and how to use them.
This chapter also tells you how to divide your code into functions.
Many aspects of functions are detailed, including function
overloading, using functions to build structured programs, and the
use of recursive function calls.
|