Tuesday, 17 April 2012

How the delete operator differs from the delete[]operator? | C++

When the new[] operator is used to allocate memory dynamically, the delete[]operator is used to free the memory.
The new[] operator is used to allocate memory to an array of values, which starts with the index 0.

No comments: