Difference between delete and delete[]?

Answer Posted / namitha

delete is a function used to deallocate the storage space.
delete[] is a function used to deallocate the storage space
of an array.

Is This Answer Correct ?    11 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is setfill c++?

684


Explain the concept of memory leak?

631


What does new in c++ do?

570


Does c++ have arraylist?

544


Which compiler does turbo c++ use?

609






What is meant by entry controlled loop? What all C++ loops are exit controlled?

572


What is a c++ vector?

595


What is a local reference?

675


Define a constructor?

593


What are the two types of comments?

577


How do I tokenize a string in c++?

610


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

704


What are the various compound assignment operators in c++?

553


What is #include c++?

571


What is meant by forward referencing and when should it be used?

560