Does delete [] call destructor?

Yes, the destructor will be called for all objects in the array when using delete[] .

Sizin İçin Seçtik  What is parameterized constructor in C++ with example?

Leave a Reply

Your email address will not be published. Required fields are marked *