Here are the arithmetic operators:
|−||Subtraction and unary minus|
int a, b;
a = 9;
b = 4;
printf(“%d “, a/b);
printf(“%d “, a%b);
When applying / the remainder is ignored and % gives the remainder value.
Increment and decrement operators:
++ is the increment operator used to add one to the operand and – – is the decrement operator used to subtract one from the operand.
Hence, a = a+ 1 is same as a++ and a=a -1 is same as a- -. These operators can both be written as a prefix or a suffix. That means a++ =++a and a- – = – -a.
Precedence of arithmetic operators (From highest to lowest): ++, – -, – (unary minus), *, /, %, +, –