How well do you know memory? What different memory areas are there?
This problem covers basics about C++'s main distinct memory stores. The following problem goes on to attack some deeper memory management questions in more detail.
C++ has several distinct memory areas in which objects and nonobject values may be stored, and each area has different characteristics.
Name as many of the distinct memory areas as you can. For each, summarize its performance characteristics and describe the lifetime of objects stored there.
Example: The stack stores automatic variables, including both builtins and objects of class type.
The following table summarizes a C++ program's major distinct memory areas. Note ...