The exception of which type will be thrown when executing the following code
 dynamic_cast<const C*>(&B());
at this class hierarchy:
struсt А{
    virtuаl ~А(){}
};
struсt В : А{};
struсt С : А{};

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes