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 the use of :: operator in c++?
Can a built-in function be recursive?
What is object oriented programming (oop)?
Can constructor be static in c++?
What are literals in C++?
What are the benefits of c++?
Why c++ is not a pure oop language?
When should you use global variables?
What is a character in c++?
What are the two shift operators and what are their functions?
What is difference between array and vector in c++?
Explain binary search.
Can manipulators fall in love?
What jobs can you get with a c++ certification?
How to give an alternate name to a namespace?