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
What are references in c++?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
What is virtual function? Explain with an example
Is linux written in c or c++?
What is the difference between containment and delegation?
What are all predefined data types in c++?
Does dev c++ support c++ 11?
Can you Mention some Application of C/C++?
What is a class template in c++?
Refer to a name of class or function that is defined within a namespace?
Is c++ a good beginners programming language?
What is the difference between #import and #include?
What is doubly linked list in c++?
What is the size of integer variable?
What does override mean in c++?