What does the following code produce ?
#include <iostream> using std::cout, std::endl; void function(){ throw; } int main() { function(); try { function(); } catch (...) { cout << "Exception !" << endl; } }
Compilation error
Execution error
Output Exception ! in the console
Exception !
Undefined behavior