is there any way by which i can check division by zero
in u++
thanks
if(divisor == 0) ?
Other than that, no. Division by zero, when it happens, is asynchronous exception that is not handled by C++. You might consider using Win32 exceptions, but IMO it is a bad practice to relly on exception in this case. Division by zero is simply bug in code.