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


Please Help Members By Posting Answers For Below Questions

What is stl containers in c++?

573


what is pre-processor in C++?

581


What are the important differences between c++ and java?

588


How can I disable the "echo" feature?

594


how to explain our contribution in the project?

3059






What does obj stand for?

616


What are static variables?

607


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2425


What is the best c++ compiler?

581


What is fixed in c++?

575


What is a constant reference?

605


How do you master coding?

550


What's the most powerful programming language?

577


How to access a variable of the structure?

571


What are the various access specifiers in c++?

590