home *** CD-ROM | disk | FTP | other *** search
- Local variables that are declared with the keyword static
- remain in memory between calls of the function in which
- they are visible. Here, the object "mylocal" retains its value
- between calls to the function routine().
- If a variable is declared outside all functions with the keyword
- static, code in other files cannot use an extern statement to
- access it. The code in Program B cannot access the variable
- myglobal.
-