Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
int64_t maskTestNum = (1ll << 63);
有人可以解释为什么这打印为下面的值吗?
-9223372036854775808
我认为绝对值是正确的,但为什么是减号?
请改用无符号整数:uint64_t。