home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH02 / A02128.TXT < prev    next >
Encoding:
Text File  |  1993-11-16  |  425 b   |  9 lines

  1. Local variables that are declared with the keyword static
  2. remain in memory between calls of the function in which
  3. they are visible.  Here, the object "mylocal" retains its value
  4. between calls to the function routine().
  5. If a variable is declared outside all functions with the keyword
  6. static, code in other files cannot use an extern statement to
  7. access it.  The code in Program B cannot access the variable
  8. myglobal.
  9.