Tag Archives: bit shifting

Bit Shifting

The left and right shift operators are the last two bitwise operators for us to look at. In C (and C++), << and >> are used to shift bits around inside bytes. Not just in any random fashion – these operators move all the bits either to the left or to the right, exactly as […]