我知道异或的工作,
Console.WriteLine(1^1); // returns 0
结果到
00000001 00000001 -------- 00000000
但这又如何返回2呢?
Console.WriteLine(-(-1^1)); // returns 2
相似问题