Mega Code Archive

 
Categories / C Tutorial / Operator
 

Common Arithmetic Operators

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