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 does #define mean in c++?

1271


Which operator cannot overload?

1050


Can a constructor be private?

1072


Write a function that swaps the values of two integers, using int* as the argument type?

1031


What do you mean by function overriding & function overloading in c++?

1188


Is linux written in c or c++?

1053


What is a local reference?

1191


What are the five basic elements of a c++ program?

1111


Is c better than c++?

1072


How do I download c++?

1006


What is a constructor and how is it called?

1050


What is a driver program?

1106


What are the unique features of C++.

1080


What are the manipulators in c++?

1041


Write a program to find the Fibonacci series recursively.

1073