delete [C++ Reference]
Keywords: keywords,delete
Date: 2009-03-23T15:53:42-0700

[[delete]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## delete

Syntax:

        delete p;
        delete[] pArray;

The delete operator frees the memory pointed to by p. The argument should have been previously allocated by a call to new or 0. The second form of delete should be used to delete an array that was allocated with “new []”. If (in either forms) the argument is 0 (NULL), nothing is done.

Related Topics: free, malloc, new

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •