What is the functionality of the following syntax to delete an-02590
What is the functionality of the following syntax to delete an array of 5 objects named arr allocated using new operator? <br>delete arr ;
This multiple choice question (MCQ) is related to the book/course vu cs201 Introduction to Programming. It can also be found in vu cs201 Final Term - Quiz No.7.
What is the functionality of the following syntax to delete an array of 5 objects named arr allocated using new operator?
delete arr ;
delete arr ;
Deletes all the objects of array
Deletes one object of array
Do not delete any object
Results into syntax errorThis statement will call the destructor only for the object pointed by the arr and deallocate the space allocated tothis object