home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH07 / A070921.TXT < prev    next >
Encoding:
Text File  |  1993-10-21  |  455 b   |  8 lines

  1. Objects declared inside a function or a block of code are local to
  2. that function or block.  When a local nonstatic object is
  3. declared, storage is allocated for it on a stack.  When a block or
  4. function ends, stack memory occupied by associated local objects
  5. is released.  The amount of data in the stack can vary greatly
  6. during program execution.  The same bytes of memory can be reused
  7. by a variety of local objects whose lifetimes do not overlap.
  8.