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 are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Write about the role of c++ in the tradeoff of safety vs. Usability?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
Is arr and &arr are same expression for an array?
What is the difference between #import and #include?
Can we use clrscr in c++?
What is the basic of c++?
Is c++ a software?
Why is c++ not purely object oriented?
Where are setjmp and longjmp used in c++?
What are the four partitions in which c++ compiler divides the ram?
What is the difference between structures and unions?
what kind of projects are suitable for c and c++
What is stack unwinding?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?