Pages

July 26, 2010

Revew OOP244 - Dynamic Memory

A program that the operating system has loaded into primary memory may obtain additional memory from the operating system at run-time. We refer to this additional memory as dynamic memory.

Variables and objects stored in dynamic memory can survive until the program terminates if necessary. Their lifetime only ends when the program explicitly deallocates their dynamic memory. Note that, unlike variables and objects in static memory, those in dynamic memory do not go of out scope at the closing brace of the block within which they have been defined.

No comments:

Post a Comment