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
How to avoid a class from instantiation?
Explain the scope resolution operator?
What do nonglobal variables default to a) auto b) register c) static
Is nan a c++?
You run a shell on unix system. How would you tell which shell are you running?
Will the inline function be compiled as the inline function always? Justify.
What is pair in c++?
Can we have "Virtual Constructors"?
what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.
What is new in c++?
What are the difference between reference variables and pointers in C++?
write the prime no program in c++?