Qtr No. 213, New Town Yehlanka
Indore 454775, India
| Predict the output of following program. class BaseClass {}; class DerivedClass: public BaseClass {}; int main() { DerivedClass d; try { throw d; } catch (...){ cout << "Caught default Exception"; } catch(BaseClass b) { cout<<"Caught BaseClass Exception "; } catch(DerivedClass d) { cout<<"Caught DerivedClass Exception "; } return 0; } |
To get all Infosys Certified CPP Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee