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 multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

1042


Write about the role of c++ in the tradeoff of safety vs. Usability?

1046


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

1052


Is arr and &arr are same expression for an array?

1042


What is the difference between #import and #include?

1045


Can we use clrscr in c++?

1066


What is the basic of c++?

1052


Is c++ a software?

1179


Why is c++ not purely object oriented?

993


Where are setjmp and longjmp used in c++?

1101


What are the four partitions in which c++ compiler divides the ram?

1209


What is the difference between structures and unions?

1051


what kind of projects are suitable for c and c++

1035


What is stack unwinding?

1120


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

964