1.

#include <iostream>using namespace std;class myexception: public exception{    virtual const char* what() const throw()    {        return "My exception";    }} ex;int main () {    try    {        throw ex;    }    catch (exception& LFC)    {        cout << LFC.what() << endl;    }    return 0;}
17.What will be the output of this program?

A. Allocated
B. Standard exception
C. Depends on the memory
D. Error
Answer» B. Standard exception


Discussion

No Comment Found

Related MCQs