#include <iostream>
using namespace std;
class B
{
  public:
        ~B()
        {  throw 42;  }
};
int main()
{
  try
  {
    B obj;
    throw 32;
  }
  catch( int i )
  {  cout<<i<<endl;  }
}
When the above code is executed program terminates abruptly.
- Why does it end abruptly?
- How to handle this kinda exception?
Note : This was asked in online test.
