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

Const char *p , char const *p What is the difference between the above two?

648


How would perform Pattern Matching in C++?

643


what is data encapsulation in C++?

596


What is the basic of c++?

590


Show the application of a dynamic array with the help of an example.

576






Is c++ a dying language?

577


What is stl containers in c++?

575


Do you know about latest advancements in C++ ?

650


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

594


What is a unnitialised pointer?

521


Which is best c++ or java?

604


When we use Abstract Class and when we use Interface?where we will implement in real time?

1658


What is tellg () in c++?

712


What are the various access specifiers in c++?

592


What methods can be overridden in java?

661