exception_handling
#include <iostream>
using namespace std;
float func(int x , int y)
{
if( y == 0)
{
throw " exception division by zero " ;
}
return x/y ;
}
int main() {
cout << "Hello World!" << endl ;
try {
float z = func(4,0);
cout << " result is " << z << endl ;
}
catch(char const * msg){
cerr << msg << endl ;
}
//cout << " result is " << z << endl ;
return 0;
}INFO