Question
1.
#include
2.
using namespace std;
3.
void empty() throw()
4.
{
5.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
void empty() throw()
4.
{
5.
cout
Answer: Option D
Was this answer helpful ?
It will print all three because we are calling all functions in the main().
Output:
$ g++ exs.cpp
$ a.out
In empty()Will throw an intCaught an int
Was this answer helpful ?
Submit Solution