next up previous contents
Next: 5.3.1 Variable Initialization Up: 5 Data TypesOperations, Previous: 8-bit Characters

5.3 Local and Global Variables

 

If a variable is declared within a function, or as an argument to a function, its binding is local, meaning that the variable has existence only that function definition.

If a variable is declared outside of a function, it is a global variable. It is defined for all functions, including functions that are defined in files other than the one in which the global variable was declared.





Fred G. Martin
Fri Mar 29 17:44:15 EST 1996