أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
When you use subtraction, there is a possibility that you might overrun the limit of the integers and it might return a bad result. Because integer ranges from -32767 to +32768... so when you overstep this range through subtraction, it may produce undesired results.