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;
Answer Posted / guest
cout<<typeid(e).name() is the correct one
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What does #define mean in c++?
Which operator cannot overload?
Can a constructor be private?
Write a function that swaps the values of two integers, using int* as the argument type?
What do you mean by function overriding & function overloading in c++?
Is linux written in c or c++?
What is a local reference?
What are the five basic elements of a c++ program?
Is c better than c++?
How do I download c++?
What is a constructor and how is it called?
What is a driver program?
What are the unique features of C++.
What are the manipulators in c++?
Write a program to find the Fibonacci series recursively.