Question: what is the difference between left shift and right shift?
Answer: << (left shift) Takes two numbers, left shifts the bits of the first operand, the second operand decides the number of places to shift. ... >> (right shift) Takes two numbers, right shifts the bits of the first operand, the second operand decides the number of places to shift.