Difference between delete and delete[]?

Answer Posted / namitha

delete is a function used to deallocate the storage space.
delete[] is a function used to deallocate the storage space
of an array.

Is This Answer Correct ?    11 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of virtual destructor?

626


Explain virtual destructor?

676


What is copy constructor? Can we make copy constructor private in c++?

597


What is lvalue?

699


What is c++ good for?

589






What is virtual methods?

659


What is c++ library?

596


what is multi-threading in C++?

615


Define copy constructor.

620


What is the use of 'this' pointer?

769


Write a note about the virtual member function?

604


Incase of a function declaration, what is extern means?

521


To what does “event-driven” refer?

611


How would you differentiate between a pre and post increment operators while overloading?

652


Is dev c++ a good compiler?

526