There are three shift operators, used for changing the bit values in integral types. They aren't used frequently, except in programs that need to keep their memory usage to an absolute minimum. The shift operators are
The left shift, represented as <<
The signed right shift, represented as >>
The unsigned right shift, represented as >>>
The left-hand side of the operators is the value to be shifted, and the right-hand side is the number of places to shift it. The type of each operand has to be an integral type, or a compiler error will occur. The shift happens on the 2's complement integer representation of the value on the left.
When the value to be shifted is an int, only the last 5 digits of the right-hand operand are used in ...