C examples for Reference:Language Reference
Arithmetic Operators in C
No. Operator Meaning Example Result 1 + Addition 5 + 3 8 2 - 1) Subtraction 5 - 3 2 2) Unary minus - (6) -6 - (-8) 8 3 * Multiplication 5 * 3 15 4 / 1) Integer Division 5 / 3 1 2) Floating Point Division 5.0 / 3.0 1.67 5 % Modulus 5 % 3 2