The % (remainder) operator yields the remainder from the division of the left operand by the right operand. For example, the expression 5 % 3 yields 2. The result is not an lvalue.
( a / b ) * b + a %b;
The usual arithmetic conversions on the operands are performed.
If both operands are negative,
the sign of the remainder is also negative. Otherwise, the sign of
the remainder is the same as the sign of the quotient.