The % operator in C is not the modulo operator but the remainder operator. Modulo and remainder operators differ with respect to negative values. With a remainder operator, the sign of the result is the same as the sign of the dividend while with a modulo operator the sign of the result is the same as the divisor.

For More Information Please Refer:

You May Also Like to Read: