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


Please Help Members By Posting Answers For Below Questions

C is to C++ as 1 is to a) What the heck b) 2 c) 10

651


Explain explicit container.

645


What operators can you overload in c++?

606


What is the difference between struct and class?

757


What is the difference between the indirection operator and the address of oper-ator?

616






Write a program to interchange 2 variables without using the third one.

594


Differentiate between late binding and early binding.

655


What are the advantages of c++?

603


What is the use of class in c++?

578


What is stoi in c++?

710


What are mutator methods in c++?

657


How do you flush std cout?

585


Differentiate between the message and method in c++?

618


What is the difference between an enumeration and a set of pre-processor # defines?

847


What is ios :: in in c++?

652