Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clarification needed Shift Operator (Khalid Mughal-Old book)

 
thomas jacob
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)The book states that the value of the left hand operand is not affected by applying the shift operator.
2)The number of bits shifted is always in the range modulus 32 for an int value and range modulus 64 for a long value.

I didn't understand what these two statements means Khalid mughal Old Book
Pg 68
 
Joe Sondow
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
thomas jacob
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe that clears my doubt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic