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
3
Answer:
I will tell wait until 3 o clock
Similar questions
India Languages,
2 months ago
Physics,
5 months ago
Math,
11 months ago
Math,
11 months ago
Math,
11 months ago