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

Why is c++ still popular?

0 Answers  


What is the need of a destructor?

0 Answers  


Define a constructor?

0 Answers  


What is c++ iterator?

0 Answers  


write a porgram in c++ that reads an integer and print the biggest digit in the number

0 Answers  


How many pointers are required to reverse a link list?

5 Answers   CTS,


When volatile can be used?

3 Answers   Symphony,


When copy constructor can be used?

4 Answers   Symphony,


what is the difference between overloading & overriding? give example.

0 Answers  


Can union be self referenced?

0 Answers  


How to tokenize a string in c++?

0 Answers  


write a C++ programming using for loop: * * * * * * * * * *

4 Answers   TCS,


Categories