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 VOID?
Write a struct time where integer m, h, s are its members?
Why is c++ called oops?
How much do coding jobs pay?
What are shallow and deep copies?
Explain the use of virtual destructor?
Do class declarations end with a semicolon?
What are the different types of polymorphism in c++?
Explain the uses of static class data?
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is DlgProc?
Can a constructor return a value?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
What is polymorphism and its type in c++?
What is rtti in c++?