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
What are the benefits of pointers?
What is #include iomanip?
Which function should be used to free the memory allocated by calloc()?
Explain object slicing in c++?
What is prototype in c++ with example?
What is the full name of logo?
Why do we use using namespace std in c++?
What is null pointer and void pointer and what is their use?
Do you know what are static and dynamic type checking?
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What is vector pair in c++?
What are friend classes? What are advantages of using friend classes?
What is lambda expression c++?
What are c++ data types?
What is the basic structure of a c++ program?