Scope of a variable

Programmers often speak of the scope of a variable.

The scope of a variable determines the set of program instructions in which the variable is accessible

With the exception of pointer variables, the scope generally decreases going down the list in the previous slide.