adplus-dvertising
CPP MCQ
What is meant by type_info?
A)
Used to hold the type information returned by the static_id
B)
Used to hold the type information returned by the static_cast
C)
Used to hold the type information returned by the typeid operator
D)
Used to hold the type information returned by the dynamic_cast

Correct Answer : Option (C) :   Used to hold the type information returned by the typeid operator

Explanation : type_info is used to hold the type information returned by the typeid operator.