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
Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);
What is "strstream" ?
Explain friend class?
Explain static and dynamic memory allocation with an example each.
What is the full form of stl in c++?
What is a parameterized type?
const char * char * const What is the differnce between the above two?
What's the order in which the objects in an array are destructed?
Where and why do I have to put the "template" and "typename" keywords?
Can we generate a C++ source code from the binary file?
Is recursion allowed in inline functions?
How can you specify a class in C++?