If I have to call a particular function in which devide by zero is happening. We cannot modify anything in called function. Only way to prevent is by doing some modifiaction in calling function. How t do that?
for ex:
//calling function
int func(5,1);
//called function
int func(int x,int y)
{
y--;
return(x/y); // here divide by zero will occur, but we cannot do any thing in
// called function
}
How to keep our application running instead of this exception ?