当我们运行以下代码时,为什么1<<31打印18446744071562067968输出?
1<<31
18446744071562067968
#include<iostream> using namespace std; int main(){ unsigned long long int i = 1<<31; cout<<i; // this prints 18446744071562067968 }
c++ bit-manipulation bit-shift bitwise-operators c++11
bit-manipulation ×1
bit-shift ×1
bitwise-operators ×1
c++ ×1
c++11 ×1