Hi Gautam,
when you're doing bit shifting, the bits at the end (in the case of right shifting, >> ) are not rotated, as in your example, but simply fall off. Therefore:
0000 0011 >> 2 becomes 0000 0000 (which is zero).
Whether you have an octal, a decimal, a hexadecimal or even a binary number does not matter - internally they are all represented as binary numbers.
If in doubt, ask your compiler.
[ May 08, 2002: Message edited by: Mag Hoehme ]