Delete operator _________________

Delete operator _________________
A. Can be used on pointers with null value
B. Can be used on pointers with void value
C. Can be used on pointer with value 0
D. Can be used on pointer with any value
 
Answer: c
Explanation: The delete operator can be used on pointers with the value 0. This actually means that when new operator fails and return value 0 then deleting the result of failed new remains harmless. Hence the deletion is possible.
 

Tìm kiếm

Back
Top