You already heard about arithmetic operators in mathematics. Similarly, we have arithmetic operators in C language. Without these operators you can not perform operations in C like +, -, *, / etc.
Let’s understand all arithmetic operators in C one by one.
Below is the list of arithmetic operators supported by C.
|Operator Symbol||Operator Description||Example|
|+||It is used to add two operands.||x+y|
|–||it is used to subtract one operand from another||x-y|
|*||You can multiply two values||x*y|
|/||Divide is used to get quotient value after dividing one from other||x/y|
|%||Don’t confuse with percentage, it is modulo operator and it is used to get reminder value||x%y|
|++||This is a unary operator used with single operand||x++ or ++x|
|– –||Similarly it is also an unary operator||x- – or – -x|
You can consider below examples based on arithmetic operators in C
Hope that you understand all arithmetic operators in C. In next chapter you will understand unary operators separately.
Please ask your queries in below comment section. Don’t forget to share in social media.