Definition: Operators do some operation on operands.
There are three different categories:
- Unary – Only one operand needs to perform a task.
- Binary – Two operands.
- Ternary – Three operands.
Now we will see more in depth about types of Operators :
+ , – , / , * , %
> , >= , < , <= , == , !=
&& (AND), || (OR) , ! (NOT)
& (AND), | (OR), ^ (X-OR), ~ (COMPLIMENT)
>> (Right shift) , << (left Shift)
Increment & Decrement Operator:
++ , —
Sizeof Operator :
‘ , ‘
Reference Operator (Unary):
D – Reference Operator (Unary):
Ternary Operator (conditional operator):
__ ? __ : __