home *** CD-ROM | disk | FTP | other *** search
- Objects declared outside of all blocks of code have global scope.
- The lifetime of a global object begins when it is declared and
- ends when the program terminates. Storage for global objects is
- allocated in a reserved data area in memory. The lifetime of a
- static object also begins when it is declared. Because static
- objects retain their value when they are out of scope, they live
- until the program terminates. Static objects are also placed in
- the data area.
-