## Difference between >> and >>>

The >> is right shift operator. It shifts bits towards right.

**For example:** 5 >> 1 returns 2. It shifts one bit towards right and one bit is lost. The result is ‘10’ which is equivalent to 2. The bit values will be same, 0 for positive number, 1 for negative number.

The >>> is right shift unsigned operator. It shifts bits towards right. Zeros are fill in the left bits regardless of sign.