Does delete return any value? A. Yes, positive value B. Yes,

does-delete-return-any-value-a-yes-positive-value-b-yes

Does delete return any value?

A. Yes, positive value

B. Yes, negative value

C. Yes, zero value

D. No

I have been asked this question during an online interview.

My query is from Delete Operator topic in section Memory Allocation & Scope of Variable of Object Oriented Programming

Correct answer is D. No

Explanation: The delete operator doesn’t return any value. Its function is to delete the memory allocated for an object. This is done in reverse way as that new operator works.