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;

Answers were Sorted based on User's Feedback



catch(exception &e) { . . . } Referring to the sample code above, which one of the ..

Answer / guest

cout<<typeid(e).name() is the correct one

Is This Answer Correct ?    5 Yes 0 No

catch(exception &e) { . . . } Referring to the sample code above, which one of the ..

Answer / santhoo035

ans:c

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C++ General Interview Questions

How to avoid a class from instantiation?

8 Answers   Symphony,


Explain the scope resolution operator?

2 Answers  


What do nonglobal variables default to a) auto b) register c) static

0 Answers  


Is nan a c++?

0 Answers  


You run a shell on unix system. How would you tell which shell are you running?

0 Answers  


Will the inline function be compiled as the inline function always? Justify.

1 Answers  


What is pair in c++?

0 Answers  


Can we have "Virtual Constructors"?

10 Answers   TCS,


what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.

9 Answers  


What is new in c++?

0 Answers  


What are the difference between reference variables and pointers in C++?

1 Answers  


write the prime no program in c++?

16 Answers  


Categories