Local Variables
-
Variables that are declared within the body of a function are local to that function and have that function as their scope.
-
Call-by-value parameters of a function are also local variables of the function.
-
Local variables can only be accessed within their scope.
-
The variables we have considered thus far are all local variables,
each having a specific scope.
-
However, C++ allows you to use
global constants and global variables.