62.
What will be the output of the following C++ code?
#include <iostream>
#include <exception>
using namespace std;
class myexc: public exception
{
    virtual const char* what() const throw()
    {
        return "My exception";
    }
} myex;
int main () 
{
    try
    {
        throw myex;
    }
    catch (exception& e)
    {
        cout << e.what() << endl;
    }
    return 0;
}

64.
What will be the output of the following C++ code?
#include <stdio.h>
#include <math.h>
int main ()
{
    printf ("The value of -3.1416 is %lf\n", fabs (-3.1416));
    return 0;
}

Read More Section(Standard Template Library (STL) in C plus plus)

Each Section contains maximum 100 MCQs question on Standard Template Library (STL) in C plus plus. To get more questions visit other sections.