Which is the proper syntax of dynamic_cast?

Lan Anh

New member
Which is the proper syntax of dynamic_cast?
A. dynamic_cast(object)
B. dynamic_cast new (object)
C. dynamic_cast(object)
D. dynamic_cast(object)
 
Answer: c
Explanation: The dynamic_cast is the name of the operator, which is followed by the new type in which the object have to be converted. Then the object name is given. This object name is then used after the type conversion.
 

Tìm kiếm

Back
Top