The delete operator frees the memory pointed to by its argument. This memory must have previously been allocated using new. The general form of delete is

delete p_var;

where p_var is a pointer to previously allocated memory.

To free an array that has been allocated using new, use this general form of delete:

delete [ ] p_var;

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: