我对左移操作员有疑问
int i = 1; i <<= (sizeof (int) *8); cout << i;
它打印1.
它是如何以及为何是1?
c c++ bit-manipulation bit-shift bitwise-operators
bit-manipulation ×1
bit-shift ×1
bitwise-operators ×1
c ×1
c++ ×1