Question
1.
#include
2.
#include
3.
using namespace std;
4.
void myunexpected ()
5.
{
6.
cout
What is the output of this program?
1.
#include
2.
#include
3.
using namespace std;
4.
void myunexpected ()
5.
{
6.
cout
Answer: Option D
Was this answer helpful ?
In this program, We are calling set_unexpected and myfunction, So it is printing the output as the given.
Output:
$ g++ etae.cpp
$ a.out
unexpected handler called
caught bad_exception
Was this answer helpful ?
Submit Solution