Common Arithmetic Operators : Arithmetic Operators « Operator « C Tutorial






OperatorDescriptionExample
*MultiplicationResult = Operand1 * Operand2;
/DivisionResult = Operand1 / Operand2;
%Modulus (remainder)Remainder = Operand1 % Operand2;
+AdditionResult = Operand1 + Operand2;
-SubtractionResult = Operand1 -Operand2;


5.2.Arithmetic Operators
5.2.1.Common Arithmetic Operators
5.2.2.Arithmetic operators in action
5.2.3.Using the Addition operator