Task

Write a function to detect a   divide by zero error   without checking if the denominator is zero.




func div_check(x, y) {
    if(catch(0x01))
        return 1;
    temp = x/y;
    return 0;
}