The delete operator is used to delete/remove all the characteristics/properties from an object by deallocating its memory; furthermore, it returns true or false in the end. In simple terms, it destroys or deallocates array and non-array(pointer) objects which are created by new expressions.
BrindhaPrathaban Answered question June 26, 2023
Using the delete operator on an object deallocates its memory
BrindhaPrathaban Answered question June 26, 2023
