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 is unary operator? List out the different operators involved in the unary operator.
What are vectors used for in c++?
How much is c++ certification?
Should the member functions which are made public in the base class be hidden?
Why c++ is not a pure oop language?
Explain the properties and principles of oop.
Can we distribute function templates and class templates in object libraries?
What are pointer-to-members? Explain.
What are the main features of c++?
What is a rooted hierarchy?
Explain friend class?
What is the fastest c++ compiler?
What does the linker do?
What is difference between rand () and srand ()?
What is the meaning of c++?