Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>delete delete object's memory space on the heap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 delete                  Delete Object's Memory Space on the Heap

 delete my_pointer;

    The delete operator deletes the memory space allocated to an
    object; it is the opposite of new (i.e. it deallocates
    sizeof(object) bytes):

               my_name *my_nameptr;
                :
                :
               my_nameptr = new my_name;
                :
                :
               delete my_nameptr;

See Also: new

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson