5.2 static

A static variable is one that exists as soon as a program starts executing, and live until the program itself exits. All global variables are static in terms of storage class. However, even local variables in a block can be static, as long as the keyword static is used in the declaration of the variable.

Note that the keyword static has a special meaning for global variables. This will be discussed in the section about scoping.


Copyright © 2006-09-25 by Tak Auyeung