C Programming Arithmetic Operators

Last modified by Microchip on 2023/11/09 09:06

OperatorOperationExampleResult
*Multiplicationx * yProduct of x and y
/Divisionx / yQuotient of x and y
%Modulusx % yRemainder of x divided by y
+Additionx + ySum of x and y
-Subtractionx - yDifference of x and y
+(unary)Positive+xValue of x
-(unary)Negative-xNegative value of x