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 last index number in an array of 100 characters a) 100 b) 99 c) 101
What is public, protected, private in c++?
Is c++ a difficult language?
Is python better than c++?
Can we inherit constructor in c++?
What is the benefit of c++?
Define a nested class. Explain how it can be useful.
What is the size of a vector?
What is an operator function? Describe the function of an operator function?
What is the difference between global variables and static varables?
What is c++ mutable?
How much do coding jobs pay?
Does c++ support multilevel and multiple inheritances?
How do you traverse a btree in backward in-order?
Is c++ the best programming language?