Home Segments Index Top Previous Next

436: Sidetrip

Later, in the hardcopy version of this book, you learn about delete, an operator that does the opposite of new: Instead of allocating a chunk of memory from the free store for an object, delete returns the memory allocated to an object to the free store. You will see that you need to use delete whenever you write a program that repeatedly reassign one or more pointers to objects created at run time using new.