Operation
The value of the variable shifts the number of digits that are specified in the expression value, keeps the symbol unchanged, and assigns the result to the variable.
result >>= expression
Parameters
Result
Any variable .
Expression
Any expression .
Description
Using the >>= operator is equivalent to using the following statement:
result = result >> expression
The >>= operator shifts all bits of result to the right expression the specified number of digits. The sign bit of result is used to populate the left vacated bit after the right shift. The bits removed from the right are discarded. For example, after the following code is evaluated, the value oftemp is -4:-14 (that is, binary 11110010) right-shift two-bit equals 4 (that is, binary 11111100).
>>= 2
Requirements
Version 1
Please see
<< operator | >> operator | >>> operator | Operator Precedence | Operator Summary