If dynamic_cast fails, which value is returned?

Answer: d
Explanation: The null pointer is returned by the dynamic_cast, if it fails. The conversion sometimes fails because of too complex type conversion. The conversion may also fail due to memory or some related issues.
 

Tìm kiếm

Back
Top