Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are advantages of c++?

956


What is a storage class?

1181


Define basic type of variable used for a different condition in C++?

1047


What is the difference between the functions rand(), random(), srand() and randomize()?

1199


Difference between declaration and definition of a variable.

1080


What is virtual function? Explain with an example

1033


What is the use of endl?

919


What are exceptions c++?

991


What is a pointer with example?

1153


Is std :: string immutable?

989


What is function declaration in c++ with example?

1008


What is an operator function? Describe the function of an operator function?

1066


Comment on assignment operator in c++.

1073


What is ifstream c++?

979


Who discovered c++?

984