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 maximum value of a unsigned char a) 255 b) 256 c) 128
Write a program in C++ for Fibonacci series
What is data hiding c++?
How do I make turbo c++ full screen?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
Is c++ a low level language?
What are the restrictions apply to constructors and destructors?
What is abstraction in c++ with example?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Can a class be static in c++?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Write my own zero-argument manipulator that should work same as hex?
What is difference between c++ and c ++ 14?
What does extern mean in a function declaration in c++?
What is the difference between while and do while loop? Explain with examples.