Which statements are true concerning the effect of the >> and >>> operators?()
- A、For non-negative values of the left operand, the >> and >>> operators will have the same effect.
- B、The result of (-1 >> 1) is 0.
- C、The result of (-1 >>> 1) is -1.
- D、The value returned by >>> will never be negative as long as the value of the right operand is equal to or greater than 1.
- E、When using the >> operator, the leftmost bit of the bit representation of the resulting value will always be the same bit value as the leftmost bit of the bit representation of the left operand.
正确答案:A,E
答案解析:有
微信扫一扫手机做题