本文介绍了如何执行无符号右移(>>>在Java)的C / C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何用C执行无符号右移(>>>在Java中)/ C ++?
How do I perform an unsigned right shift (>>> in Java) in C/C++?
推荐答案
>>>
是无符号右移,所以我认为,在C这会是相同的
>>>
is unsigned right shift, so I would think that in C this would be the same as
unsigned int foo;
unsigned int bar = foo >> whatever;
这篇关于如何执行无符号右移(>>>在Java)的C / C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!