3.2 free and delete

The difference between free and delete is the invocation of the destructor method.

free simply deallocates the memory that its parameter points to. However, delete calls the destructor before deallocating memory like free does.



Copyright © 2006-09-21 by Tak Auyeung