📜  为什么不按位运算给出负数? - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:59.089000             🧑  作者: Mango

代码示例1
int x = 4;
int y;
int z;
y = ~(x<<1);
z =~(0x01<<1);
cout<<"y = "<