An Operator is a special symbol that are used to check , change or combine values. Operator is something that takes one or more values and produces another value.
Depending upon the number of values an operator can take in, it can be divided into,
I. Unary operators : takes only one value.
! (not/negative)
++ (increment operator)
++ (decremental operator)
II. Binary operators : takes two values.
+ (addition)
- (subtraction)
* (multiplication)
/ (division)
% (modulo)
= (equals)
== (boolean comparator operator)
> (boolean greater)
< (boolean less)
&& (boolean AND)
|| (boolean OR)
III. Ternary operator : takes three values.
value 1 ? value 2 : value 3
List of Operators
1. Operator Precedence
2. Arithmetic Operators
3. Assignment Operators
4. Bitwise Operators
5. Comparison Operators
6. Incrementing/Decrementing Operators
7. Logical Operators
Lets check out each of the above mentioned Operators one by one ...