The shift operator is also for the binary "bit", which mainly includes the left shift operator (>>), and the signed right shift operator (>>).
1. Left shift operatorThe left-shift operator, represented by "public class Data17{public static void
1. Left shift operatorThe left shift operator 1) Its general format is as follows:Value NUM Specifies the number of bits to shift the value to move.Left-shift rule remembers only one point: Discard the highest bit, 0 the minimum bitIf the number of
About the shift left operator in C language, the shift left Operator
Referring to c and pointer, the result of left shifting in c language is the same regardless of arithmetic or logical left shifting. In addition, perform the same operation for the
1. Left shift operatorThe left shift operator 1) Its general format is as follows:Value NUM Specifies the number of bits to shift the value to move.Left-shift rule remembers only one point: Discard the highest bit, 0 the minimum bitIf the number of
The bitwise shift operator is an operation that moves the data as a binary number, moving it to the left or right several bits. The bit shift operators are divided into left and right shifts, both of which are binocular operators. The first
C ++ shift operator and shift operator
For more information about logical shift and arithmetic shift, see the quick Bi questions section. .
Previously, we saw that in C ++ standards, the behavior of the shift operator () out of the bounds is not
Arithmetic left shift operator>> operation rules:according to the binary form to move all the numbers to the right of the towering digits, low-shifted out (discard), high position of the vacancy complement the sign, that is, positive 0, negative
There are three kinds of shift operators in Java>>: Right shift operator, NUM >> 1, equivalent num divided by 2>>>: Unsigned Right shift, ignore sign bit, empty 0
1. Left shift operator
The left shift operator 1) Its general format is as
Http://soft.chinabyte.com/database/195/11553695.shtmlThe Java shift operators are all about these three kinds of:> (with symbols right) and >>> (unsigned Right shift).1. Left shift operatorThe left shift operator 1) Its general format is as
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.