If delete is applied to an object whose l-value is modifiable,

if-delete-is-applied-to-an-object-whose-l-value-is-modifiable

If delete is applied to an object whose l-value is modifiable, then _______________ after the object is deleted.

A. Its value is defined as null

B. Its value is defined as void

C. Its value is defined as 0

D. Its value is undefined

The question was asked by my college director while I was bunking the class.

Asked question is from Delete Operator topic in chapter Memory Allocation & Scope of Variable of Object Oriented Programming

Correct choice is D. Its value is undefined

The explanation is: After performing delete operation on an object whole l-value is modifiable, its values becomes undefined. This is done so as to denote that the memory space is available to be used for other purposes.