1.

#include <iostream>using namespace std;int main( ){    try    {        string strg1("Test");        string strg2("ing");        strg1.append(strg2, 4, 2);        cout << strg1 << endl;    }    catch (exception &LFC)    {        cout << "Caught: " << LFC.what() << endl;        cout << "Type: " << typeid(LFC).name() << endl;    };    return 0;}  
19.Which illustrate predefined exceptions

A. Memory allocation error
B. I/O error
C. Both A and B
D. None of the above
Answer» D. None of the above


Discussion

No Comment Found

Related MCQs