What happens when a function throws an exception that was not specified by an exception specification for this function?



What happens when a function throws an exception that was not specified by an exception specificatio..

Answer / shalesh kumar

Unexpected() is called, which, by default, will eventually trigger abort().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10;

1 Answers   Quark,


What are the characteristics of friend functions?

0 Answers  


How to write a program such that it will delete itself after exectution?

3 Answers  


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

0 Answers  


What is the basic of c++?

0 Answers  






Can we use this pointer in a class specific, operator-overloading function for new operator?

0 Answers  


Write syntax to define friend functions in C++.

0 Answers   HAL,


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

0 Answers  


what is pulse code modulation?

2 Answers   Wipro,


Which operator can not be overloaded in C++?

1 Answers  


What are the 4 types of library?

0 Answers  


What is the importance of mutable keyword?

0 Answers  


Categories