Whether it's true or false value returned by >>> will never be negative Answer is false and they give following explantion. for RHS of 32, no shifting will be done and same(if-ve then -ve and if +ve then +ve) Can somebody explain me what is mean by RHS of 32 by giving an example. Is this related to int widht? Thanks in advance Ash
Rajesh Patil
Greenhorn
Joined: May 21, 2001
Posts: 5
posted
0
Hi Ash, The width of an Integer is 4 Bytes i.e. 32 Bits. So it can be shifted logically 32 times. If shift is by 33 then the actual shift occurs 33%32 times i.e. once only. Now 32%32=0 so No shift when you try to an int by 32! Also a long can be shifted 64%x times.
------------------ rptl [This message has been edited by Rajesh Patil (edited May 24, 2001).]