Unray Operators:
A type of operators that works with one operand.
Following operators are unary operators:
-,++,--
The above operators are used with one operand as follows:
-a;
N++;
--x;
Binary operators:
A type of operator that works with two operands is know as binary operators.
+,-,*,/,% these are binary operators.
A type of operators that works with one operand.
Following operators are unary operators:
-,++,--
The above operators are used with one operand as follows:
-a;
N++;
--x;
Binary operators:
A type of operator that works with two operands is know as binary operators.
+,-,*,/,% these are binary operators.