>>> Shift Operator

Source: Internet
Author: User
Http://zhidao.baidu.com/question/130174662.html&__bd_tkn__=7a8f5f3b762e99274217e566a08a23bf9a1c88a68078338d51fed8133ea5c69d362ad36bb4bcda3b39bb3949f6bbe47087ac3af56e60b1f4e7eb6015795ffd339a63affe5c0f03de0125277bd732cc7f48779a000d2fce8bd44a350b7159305fbb127b463bb4dfdee8068daccbdc8d0ccf3625f64eab

Unsigned right shift operator (>>>) shifts the bit of the expression right without retaining the symbol. Result = expression1 >>> expression2 >>> the operator shifts the bits of expression1 to the right of the bits specified by expression2.
After the right shift, the left blank space is filled with zero. Removed from the right side is discarded, for example, M =-3> 2-3 is 1111 1101 at this time M = 0011 1111 and> for the unsigned number is the same as the above if it is signed
Depends on the operating system used.
Divided into logical right shift, that is, add 0 at the highest bit
The right shift of arithmetic is to add 1 in the highest bit.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.