Home / Questions / What is the difference between the >> and >>> operators?
Explanatory Question

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

👁 592 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

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