About 253,000 results
Open links in new tab
  1. Right Shift Operator (>>) in Programming - GeeksforGeeks

    May 11, 2024 · Right shift operator (>>), commonly found in programming languages, including C, C++, Java, and others, is used to shift the bits of a number to the right by a specified number …

  2. Right shift (>>) - JavaScript | MDN

    Jul 8, 2025 · The right shift (>>) operator returns a number or BigInt whose binary representation is the first operand shifted by the specified number of bits to the right. Excess bits shifted off to …

  3. Left shift and right shift operators: << and >> | Microsoft Learn

    Mar 2, 2024 · The bitwise shift operators are the right-shift operator (>>), which moves the bits of an integer or enumeration type expression to the right, and the left-shift operator (<<), which …

  4. What does a bitwise shift (left or right) do and what is it used for?

    Jun 17, 2011 · I've seen the operators >> and << in various code that I've looked at (none of which I actually understood), but I'm just wondering what they actually do and what some …

  5. What is a Bitwise Operator? - W3Schools

    A bitwise operator is a symbol or keyword that tells the computer what operation to perform, bit by bit, on values or variables. See this page for an overview of other types of operators.

  6. Arithmetic operators - cppreference.com

    Jun 25, 2024 · Returns the result of specific arithmetic operation. All operators in this table are overloadable. All built-in operators return values, and most user-defined overloads also return …

  7. Bitwise Operators in Python

    Jul 28, 2025 · The bitwise right shift operator (>>) is analogous to the left one, but instead of moving bits to the left, it pushes them to the right by the specified number of places.

  8. C Bitwise Right Shift Operator - Syntax, Examples - Tutorial Kart

    In C, the Bitwise Right Shift >> operator shifts the bits of a number to the right by a specified number of positions. This operation effectively divides the number by 2^n, where n is the …

  9. Left Shift and Right Shift Operators in C/C++ - GeeksforGeeks

    Jul 11, 2025 · In C/C++, left shift (<<) and right shift (>>) operators are binary bitwise operators that are used to shift the bits either left or right of the first operand by the number of positions …

  10. What are bitwise shift (bit-shift) operators and how do they work?

    Here's a brief (or not-so-brief) introduction to the different shift operators. >> is the arithmetic (or signed) right shift operator. >>> is the logical (or unsigned) right shift operator. << is the left …