catch(exception &e)
{
. . .
}
Referring to the sample code above, which one of the
following lines of code produces a written description of
the type of exception that "e" refers to?
a) cout << e.type();
b) cout << e.name();
c) cout << typeid(e).name();
d) cout << e.what();
e) cout << e;

Answer Posted / santhoo035

ans:c

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is runtime polymorphism in c++?

584


What is the difference between a reference and a pointer?

593


What is vector string in c++?

570


What is class syntax c++?

590


What is the purpose of the "delete" operator?

624






Which ide is best for c++?

540


Write about the use of the virtual destructor?

604


How can a called function determine the number of arguments that have been passed to it?

655


Explain explicit container.

633


How does a copy constructor differs from an overloaded assignment operator?

554


What are the advantages of c++? Explain

592


What is abstract class in c++?

581


Which operations are permitted on pointers?

566


What is difference between rand () and srand ()?

590


What are the types of array in c++?

616