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
Are c and c++ different?
program explaining feautures of c++
Should the this pointer can be used in the constructor?
Explain rethrowing exceptions with an example?
What do you mean by global variables?
Define upcasting.
Write a program to show polymorphism in C++?
What is the disadvantage of using a macro?
How can you find the nodes with repetetive data in a linked list?
Is c the same as c++?
What are advantages and disadvantages of Design patterns?
Can we use resume in error handling i.e. in the catch block