World Languages, asked by nainasharma20899, 5 months ago

Find the output of the following C++ program
12
#include <iostream>
#include <exception>
using namespace std;
struct ExceptionDemo: public exception
{
const char * function () const throw ()
{
return "Exception has occured":
)
};
int main(void)
{
try
{
throw ExceptionDemo:
3
I
catch(ExceptionDemo& a)
{
std cout << a function() << std endl;
3
catch(std exception& b)
{
std::cout << "ExceptionDemo" << std endi
std cout << "Exception Test" << std: endl;

Answers

Answered by vishwamuttange69
3

Answer:

I will tell wait until 3 o clock

Similar questions