Mình nhiều lúc làm bài tập gặp phải phép toán >>> và <<<
Mọi người có ai đã tìm hiểu cho xin ý kiến với, mình chưa hiểu nó làm gì.
Thảo luận Phép toán ">>>"
gõ sai có tổ chức ah :)))) nhớ là có “>>” và “<<” hôi mà :v
Mình thấy có trong java mà. Cái này hình như là unsigned shift. Mình cũng chưa dùng bao giờ 
java chưa học đến đây :))) ghê thậc
Cảm ơn mọi người, lần theo các dấu vết trên thì tìm cái này chuẩn 
http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.19
[quote]The value of n >>> s is n right-shifted s bit positions with zero-extension, where:
If n is positive, then the result is the same as that of n >> s.
If n is negative and the type of the left-hand operand is int, then the result is equal to that of the expression (n >> s) + (2 << ~s).
If n is negative and the type of the left-hand operand is long, then the result is equal to that of the expression (n >> s) + (2L << ~s).
[/quote]
kỷ niệm ace bức ảnh test 



83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?