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;
Answers were Sorted based on User's Feedback
Can we have "Virtual Constructors"?
Should a constructor be public or private?
Do class declarations end with a semicolon? Do class method definitions?
What's the order in which the local objects are destructed?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
Should I learn c or c++ or c#?
What is a binary file? List the merits and demerits of the binary file usagein C++.
what is the use of Namespace in c++.
What is the difference between a type-specific template friend class and a general template friend class?
Explain storage qualifiers in c++.
What are the two shift operators and what are their functions?
How to give an alternate name to a namespace?