Com01 PPT Operatorsandconditionalstatement
Com01 PPT Operatorsandconditionalstatement
Com01 PPT Operatorsandconditionalstatement
= x=5 x=5
+= x += 3 x=x+3
-= x -= 3 x=x-3
*= x *= 3 x=x*3
/= x /= 3 x=x/3
%= x %= 3 x=x%3
|= x |= 3 x=x|3
^= x ^= 3 x=x^3
== Equal to x == y
!= Not equal x != y
&& Logical and Returns true if both statements x < 5 && x < 10
are true
! Logical not Reverse the result, returns false if !(x < 5 && x < 10)
the result is true
BITWISE
OPERATORS
● perform operations on
integer data at the
individual bit-level
BITWISE OPERATORS
Operator Description
| Bitwise OR
^ Bitwise XOR
~ Bitwise Complement