finding the ith bit code example
Example: get ith bit
(x&(1<<i) != 0)
0010 1100
& 0010 0000 (1<<i)
------------
0010 0000 (is not zero)
(x&(1<<i) != 0)
0010 1100
& 0010 0000 (1<<i)
------------
0010 0000 (is not zero)