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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment