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 / santhoo035
ans:c
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are libraries in c++?
Do class method definitions?
Define a constructor?
Difference between class and structure.
What are the advantages of prototyping?
What is data structure in c++?
What c++ library is string in?
Write is a binary search tree? Write an algo and tell complexity?
How can you link a c++ program to c functions?
How do I run c++?
What's the "software peter principleā?
Does c++ have string data type?
What are the four main data types?
What are structures and unions?
Explain public, protected, private in c++?