Question
1.
#include
2.
#include
3.
#include
4.
using namespace std;
5.
void myterminate ()
6.
{
7.
cerr
What is the output of this program?
1.
#include
2.
#include
3.
#include
4.
using namespace std;
5.
void myterminate ()
6.
{
7.
cerr
Answer: Option C
Was this answer helpful ?
In this program, We are using set_terminate to abort the program.
Output:
$ g++ uce2.cpp
$ a.out
terminate handler called
Aborted
Was this answer helpful ?
Submit Solution