Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
#include
4.
#include
5.
void Funct()
6.
{
7.
cout
Options:
A .  Integer exception raised.
B .  Funct() was called by terminate().
C .  both a & b
D .  none of the mentioned
Answer: Option B

As there is no integer in this program, We are printing Funct() was called by terminate().
Output:
$ g++ uce4.cpp
$ a.out
Funct() was called by terminate().



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers