Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
In Left Shift operator each bit is shifted to left, and zero is padded to right
side.
Here shifting is done two times
5 0000 0000 0000 0101 (<< 2)
___________________________________________
20 0000 0000 0001 0100
In Right Shift operator each bit is shifted to right, and zero is padded to left
side for unsigned numbers,while copy of right most bit (MSB) is padded to left side
for signed numbers