Arithmatic Operators in C

Last Updated Nov 1, 2015, 07:00:14 PM





An Arithmatic Operator is a mathematical function which takes two operands and perform different operations. The below table shows all the list of arithmatic operators available in c

Operator Description Example Try It Now
+ Performs addition of two numbers If x = 2,y = 3 then x + y 5 Try It Now
- Subtract two numbers If x = 4, y = 2 then x - y = 2 Try It Now
* Multiply two numbers If x = 4, y = 2 then x * y = 8 Try It Now
/ Divide numerator by de-numerator If x = 20, y = 2 then x / y = 10 Try It Now
% Modulus Operator If x = 2, y = 20 then x % y = 2 Try It Now
++ Increment Operator If x = 23 ? x++ = 24 Try It Now
-- Decrement Operator If x = 23 ? x-- = 22 Try It Now

Here is an example program that demonistrates all the above arithematic operators

Try It Now

Other Operators you might want to learn

C-Operators

Arithmetic Operators

Assignment Operators

Logical Operators

Relational Operators