Difference between delete and delete[]?

Answer Posted / laxman

delete is only just to delete a variable which is created
by new operator. delete[] , it deletes the array where the
varaialbe points .

Is This Answer Correct ?    24 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unary operator? List out the different operators involved in the unary operator.

775


What are vectors used for in c++?

802


How much is c++ certification?

765


Should the member functions which are made public in the base class be hidden?

765


Why c++ is not a pure oop language?

723


Explain the properties and principles of oop.

721


Can we distribute function templates and class templates in object libraries?

789


What are pointer-to-members? Explain.

802


What are the main features of c++?

748


What is a rooted hierarchy?

871


Explain friend class?

866


What is the fastest c++ compiler?

770


What does the linker do?

791


What is difference between rand () and srand ()?

821


What is the meaning of c++?

759