如何在C/C++中设置,清除和切换?
c c++ bit-manipulation bitwise-operators
while ((1U << i) < nSize) { i++; }
用什么特别的理由1U代替1?
1U
1
c integer
c ×2
bit-manipulation ×1
bitwise-operators ×1
c++ ×1
integer ×1