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
Difference between inline functions and macros?
what is multi-threading in C++?
What is meant by forward referencing and when should it be used?
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 difference between c++ 11 and c++ 14?
How are pointers type-cast?
What is the need of a destructor?
Does c++ support exception handling?
Explain the difference between c & c++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What is the this pointer?
what does the following statement mean? int (*a)[4]
What is setw manipulator in c++?
Can manipulators fall in love?
What is else if syntax?