Course Content

Course Content


The binary right shift operator is a computer programming operator that shifts all the bits in a number to the right.

A binary number can be represented as:

  • 100000001

The binary right shift operator would convert this number to:

  • 100000010

The least-significant bit is lost when shifting right with a logical right shift, and a 0 is added on the other end. A single logical right shift splits a positive number by two, removing all remainders.

The bitwise shift operators shift a binary object's bit values. The value to be shifted is specified by the left operand. The right operand defines how many positions the bits in the value should be moved to. The outcome isn't a lvalue. Both operands have the same precedence and are associative from left to right.

The Right shift operator, like the Left shift operator, requires two operands to shift the bits on the right side and then insert zeroes into the empty space formed on the left side once the bits have been shifted.

The number on the left of the operator is shifted by the number to the right by the specified number of places. Because each shift to the left doubles the number, each shift to the left multiplies the original number by two. Left shift can be used for quick multiplication or to compress a bunch of numbers into a single larger value.

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere