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
Is it possible to use a new for the reallocation of pointers ?
What is a sequence in c++?
What is malloc in c++?
Can a program run without main?
What is the limitation of cin while taking input for character array?
Define token in c++.
What is the meaning of string in c++?
Is c++ built on c?
State the difference between delete and delete[].
What is the c++ programming language used for?
How can virtual functions in c++ be implemented?
Is c++ platform dependent?
Discussion on error handling of C++ .
Which programming language should I learn first?
What is ios :: in in c++?