About 258,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. 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 …

  6. Shift operator - Wikipedia

    In mathematics, and in particular functional analysis, the shift operator, also known as the translation operator, is an operator that takes a function x ↦ f(x) to its translation x ↦ f(x + a). [1]

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

    We use number = number >> 1 to shift right by 1 in each iteration. The loop continues until number becomes 0.

  8. Bitwise left and right shift operators << >> - IBM

    The bitwise shift operators move the bit values of a binary object. The left operand specifies the value to be shifted. The right operand specifies the number of positions that the bits in the …

  9. Left Shift and Right Shift Operators in C/C++ – TheLinuxCode

    May 21, 2025 · That‘s where bitwise operators come in, particularly the left shift (<<) and right shift (>>) operators in C and C++. These operators might seem mysterious at first, but they‘re …

  10. Bitwise operations in C - Wikipedia

    There are two bitwise shift operators. They are. The symbol of right shift operator is >>. For its operation, it requires two operands. It shifts each bit in its left operand to the right.