adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    void Funct();
    int main()
    {
        try 
        {
            Funct();
        }
        catch(double) 
        {
            cerr << "caught a double type..." << endl;
        }
        return 0;
    }
    void Funct()
    {
        throw 3;
    }

a.

caught a double type

b.

compile time error

c.

abnormal program termination

d.

none of the mentioned

Answer: (c).abnormal program termination

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?