Home Segments Index Top Previous Next

138: Sidetrip

Static global variables are variables whose scope includes one file of a multiple-file program. Hence, a static global variable can be evaluated and assigned at any point in one file, after it is defined, but that same static global variable cannot be evaluated or assigned at any point in any other file. Static global variables are discussed in the hardcopy version of this book.

Scope issues also arise in connection with class member variables and class member functions. You learn about member variables and member functions—and their corresponding scope properties—throughout the remainder of this book.