Bit wise operators usage.
And (&): An ideal use for this is to set up a mask to check the values of certain bits.
Or(|): An ideal use for this is to ensure that certain bits are set.
XOR(^): An ideal use for this is to toggle certain bits.
Right shift (>>): is divide by 2. Zerofill right shift (>>>)
Left shift (<<): is multiply by 2.
Or(|): An ideal use for this is to ensure that certain bits are set.
XOR(^): An ideal use for this is to toggle certain bits.
Right shift (>>): is divide by 2. Zerofill right shift (>>>)
Left shift (<<): is multiply by 2.