Arithmetic Operator: There are two types of Arithmetic Operator -
- Unary Arithmetic Operator
- Binary Arithmetic Operator
Unary Arithmetic Operator: The arithmetic operator that works on a single operand are known as UNARY ARITHMETIC OPERATOR.
For Example: +a,-a.
Means ' + ' & ' - ' are the Unary Arithmetic Operator.
Binary Arithmetic Operator: The arithmetic operator that works on two operands are known as Binary Arithmetic Operator.
There are six type of Binary Operator:
Operator Name Symbol Working
Plus + Add two numeric values
Minus - Subtract two numeric values
Slash / Divide two numeric values and return quotient
Asterisk * Multiply two numeric values and return product
Mod % Divide two numeric values and return reminder