1.

Which type of value has resulted from the delete operator?(a) void(b) void pointer(c) null pointer(d) nullThis question was addressed to me during an internship interview.The query is from Delete Operator in portion Memory Allocation & Scope of Variable of Object Oriented Programming

Answer» CORRECT choice is (a) void

Easiest explanation - The RESULT of the delete OPERATOR is void. The values returned is of no use to the PROGRAM or any other system FUNCTION hence the return type is not defined for the delete operator.


Discussion

No Comment Found

Related InterviewSolutions