memory management - delete vs delete[] operators in C++ - Stack Overflow
What is the difference between delete and delete[] operators in C++? ... The delete[] operator is used to delete arrays. The delete operator is used to delete non-array objects. It calls operator delete[] and operator delete function respectively to delet...