Home Segments Index Top Previous Next

415: Mainline

Each C++ program has access to a large chunk of memory called the free store. The new operator allocates memory for a specified object at run time by treating the free store as a reservoir. Thus, the expression new double allocates the memory required to hold a floating-point object, and new cylinder allocates the memory required to hold a cylinder object.