C++ defines two operators, new and delete, that allocate memory from the free store and release memory back into the free store.
Allocating memory in code
Get Beginning C++ Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.