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 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?

2419


Describe private, protected and public – the differences and give examples.

1266


Do vectors start at 0?

1046


What is a literal in c++?

1167


What are the benefits of oop in c++?

1315


What is malloc in c++?

1068


What is the difference between structure and class?

1378


What are the various operations performed on stack?

1153


Will a catch statement catch a derived exception if it is looking for the base class?

1063


How would you find out if a linked-list is a cycle or not?

1054


Can non-public members of another instance of the class be retrieved by the method of the same class?

1125


Which ide is best for c++?

1091


Is swift faster than go?

1141


Should the this pointer can be used in the constructor?

1076


What is the use of c++ programming language in real life?

1097