Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

shift operator and bits

 
AJ Brown
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been studying the Bates and Sierra book. I don't quite understand the shift operator and bits. Is there a better explanation of these somewhere on the web?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!
Sometimes it's helpful to just read a few different explanations of a topic, whether one explanation is better than another may not be important.
So, for another explanation of this bit manipulation stuff, you might appreciate a read of the "Cat and Mouse Games with Bits" story of The JavaRanch Campfire Stories.
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by AJ Brown:
I've been studying the Bates and Sierra book. I don't quite understand the shift operator and bits. Is there a better explanation of these somewhere on the web?

I've read that book too. Really, what do you not understand? See if I could explain it to you?
 
AJ Brown
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. The cat and mouse example really helped. I now understand it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic