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

What is the main purpose of overloading operators?

808


What are files in c++?

770


How does com provide language transparency?

784


What is an inline function in c++?

850


How do you generate a random number in c++?

824


What is the use of data hiding?

773


What is the full name of logo?

834


What character terminates all character array strings a) b) . c) END

968


How is objective c different from c++?

998


What operators can you overload in c++?

774


Give an example of run-time polymorphism/virtual functions.

751


What is the use of class in c++?

779


Differentiate between a constructor and a method in C++.

771


Which field is used in c++?

825


what are the decision making statements in C++? Explain if statement with an example?

862