delete expression

delete expression

Destructs object(s) previously allocated by the new expression and releases obtained memory area.

Syntax

::(optional) delete    expression (1)
::(optional) delete [] expression (2)
1) Destroys one non-array object created by a new-expression
2) Destroys an array created by a 登录查看完整内容