What is the difference between delete and delete?

1 answer

Answer

1006037

2026-03-09 04:15

+ Follow

delete is used to destroy a single object. It will call the destructor of the object and free the memory. delete[] is used to free the memory which was allocated using new []. delete [] will call the destructor for each object in array and free the memory. ________________ As far as I can tell, they aren't delete bit different.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.