← Back to Question List
C++ Quiz #42
Code After throw Is Skipped
What is the output of this code?
📄 Code
1#include <iostream>2#include <stdexcept>3using namespace std;45int main() {6 try {7 throw runtime_error("Oops!");8 cout << "After throw" << endl;9 } catch (const runtime_error& e) {10 cout << e.what() << endl;11 }12 return 0;13}