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
What is lambda in c++?
What is the benefit of c++?
structure contains int, char, float how it behaves for big endian and little endian?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
Why Pointers are not used in C++?
Explain public, protected, private in c++?
What is the output of printf("%d")?
58 Answers CTS, HCL, Infosys, TCS, Winit, Wipro,
Where do I find the current c or c++ standard documents?
When should we use container classes instead of arrays?
What do you mean by early binding?
List different attributes in C++?
Is there structure in c++?