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

What do you understand by a pure virtual member function?

0 Answers  


Give 2 examples of a code optimization?

4 Answers  


class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.

2 Answers   Quark,


How is modularity introduced in C++?

0 Answers   TCS,


Which function cannot be overloaded c++?

0 Answers  


Explain the uses of static class data?

0 Answers  


What do you mean by early binding?

0 Answers  


What does flush do?

0 Answers  


What are manipulators used for?

0 Answers  


Write a program which employs Recursion

0 Answers  


int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?

11 Answers   HCL, Mphasis,


What is the default access level?

0 Answers  


Categories