11.7 Bitwise Shift Operators

2010-05-17

ShiftExpression :
AdditiveExpression
ShiftExpression << AdditiveExpression
ShiftExpression >> AdditiveExpression
ShiftExpression >>> AdditiveExpression

Basically, << shifts the bits of the left operand to the left, filling the right most bits with zeros. >> wwill shift the bits to the right, filling the left most bit with whatever the sign is. For positive numbers the sign is 0, for negative numbers the sign is 1. >>> will ignore the sign and always fill the left most bits with zeros.

todo: examples