Tuesday, March 22, 2011

4.6 Static Variables

  • The static declaration, applied to an external variable or function, limits the scope of that object to the rest of the source file being compiled
  • If a variable or function is declared static, its name is invisible outside the file in which it is declared
  • Internal static variables provide private, permanent storage within a single function

No comments:

Post a Comment