x << n
means shifting all the bits of x
to the left by n
places then padding the right-added bits with 0
s.
This is the equivalent of x * 2n
x << n
means shifting all the bits of x
to the left by n
places then padding the right-added bits with 0
s.
This is the equivalent of x * 2n