Interview Question
Country: India
16>>2
i.e. 16 right shiftby two places
16's binary is 10000 . now we have to shift 2 bits to right side and fill the gap with 00 on right side so it will be like 00100 [ last 2 zeros will get removed as being right shifted by 2 bits ]
now 00100 is nothing but 4 in binary
4. right shift 2 bits for 10000, then 00100.
- Anonymous March 31, 2012