Professional Documents
Culture Documents
Sec 3 (Autosaved)
Sec 3 (Autosaved)
Operator Name
~ Not
& AND
| OR
^ XOR
<< Left Shift
>> Right Shift
RELATIONAL OPERATION
operator Name Example
== Equality (4==5) false
!= Not equal (4!=5) true
<= Less than or equal (3<= 7) true
>= Greater than or equal (3>=7) false
< Less than (4<7) true
> Greater than (5>9) false
LOGICAL OPERATOR
• To join logical expressions / its output (true or false)
Operator Name
! Logical not
&& Logical and
|| Logical or