Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
void empty() throw()
4.
{
5.
cout
Options:
A .  In empty()
B .  Will throw an int
C .  Caught an int
D .  All of the mentioned
Answer: Option D

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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :

Latest Videos

Latest Test Papers