What is the difference between the >> and >>> operators

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that havebeen shifted out.

Showing Answers 1 - 3 of 3 Answers

>> and >>> are both shifting operators.
>> shifting operator carries the sign when a number is being shifted right.
>>> shifting operator fills the spaces with zero for a number which is been shifted right.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions