Bitwise operators

We have more of the bitwise operators, using the bitwise operator we can set or determine the specific bit in whole numbers.
bitwise left shift
par1 << par2

par1 shl par2
bitwise right shift
par1 >> par2

par1 shr par2
bitwise and
par1 & par2

par1 and par2
bitwise or
par1 | par2

par1 or par2
bitwise not
~ par1

not par1
bitwise xor
par1 ^ par2

par1 xor par2

Example

Other pieces of example codes:
z = (x >> 2) >> 2
z = 0xf0 | (x | y)
x = 123 ^ 25
y = 5 & 3
y = ~x
z = (x << y) << 2
Languages: en hu cz sk