Left Shift and Right Shift Operators

Learn the functionality of the left shift and right shift operators in C.

The left shift operator


The left shift operator moves all the bits in operand1 to the left by the number of places specified in operand2.


The left shift operator is a binary operator that operates on two operands as shown below:

Get hands-on with 1400+ tech skills courses.