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 is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
Describe private, protected and public – the differences and give examples.
Do vectors start at 0?
What is a literal in c++?
What are the benefits of oop in c++?
What is malloc in c++?
What is the difference between structure and class?
What are the various operations performed on stack?
Will a catch statement catch a derived exception if it is looking for the base class?
How would you find out if a linked-list is a cycle or not?
Can non-public members of another instance of the class be retrieved by the method of the same class?
Which ide is best for c++?
Is swift faster than go?
Should the this pointer can be used in the constructor?
What is the use of c++ programming language in real life?