| Author |
what would be the result of this
|
sura watthana
Ranch Hand
Joined: Sep 13, 2004
Posts: 77
|
|
Could anyone help me out? what would be the result of this (-1>> 1) and (-1>>>1) and (-42>>-4) and why thanks
|
 |
Mike Gershman
Ranch Hand
Joined: Mar 13, 2004
Posts: 1272
|
|
|
What happened when you tried them?
|
Mike Gershman
SCJP 1.4, SCWCD in process
|
 |
Joyce Lee
Ranch Hand
Joined: Jul 11, 2003
Posts: 1392
|
|
Hi Sura, Check out Corey McGlone's Bit Shifting for explanation. Output: 11111111111111111111111111111111 11111111111111111111111111111111 Joyce  [ November 18, 2004: Message edited by: Joyce Lee ]
|
 |
 |
|
|
subject: what would be the result of this
|
|
|