What happens? try { throw 10; } catch(float x){ cout << "Float"; } catch(...){ cout << "All"; }
14 views
- Float
- 10
- All (Correct Answer)
- Compile error
Explanation
Thrown int not caught by float handler → caught by catch-all (...).
Thrown int not caught by float handler → caught by catch-all (...).
No comments yet. Be the first to comment!
Explore thousands of MCQs across every exam category on Exams Nepal.
Find More MCQs