backscratcher

 

java

Page history last edited by tbarron 1 yr ago

java notes

 

  • Shifting bits by a negative number returns 0. Eg.

 

2 << 2 -> 8

2 << 1 -> 4

2 << 0 -> 2

2 << -1 -> 0

Comments (0)

You don't have permission to comment on this page.