The results of the
"/" and
"%" operators are also not properly defined for signed arithmetic operations unless both operands are positive.
Note:
The way a Compiler implements
"/" and
"%" for negative operands is determined by the hardware implementation of the target's division instructions.