1.

Why we use the “dynamic_cast” type conversion?(a) result of the type conversion is a valid(b) to be used in low memory(c) result of the type conversion is an invalid(d) it is used for storageI got this question by my college director while I was bunking the class.The question is from Conversion Operators in division Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Right answer is (a) RESULT of the type conversion is a valid

For explanation: It is USED to CHECK that OPERATORS and operands are compatible after conversion.



Discussion

No Comment Found

Related InterviewSolutions