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 the use of :: operator in c++?

593


Can a built-in function be recursive?

580


What is object oriented programming (oop)?

619


Can constructor be static in c++?

636


What are literals in C++?

589






What are the benefits of c++?

565


Why c++ is not a pure oop language?

551


When should you use global variables?

626


What is a character in c++?

559


What are the two shift operators and what are their functions?

557


What is difference between array and vector in c++?

554


Explain binary search.

574


Can manipulators fall in love?

559


What jobs can you get with a c++ certification?

581


How to give an alternate name to a namespace?

587