Local variables
A local variable is a variable that is declared within a block of code within any function.
The C++ program shown in Listing 4 illustrates local variables.