int a = 2; int b = 7; a = a + b; b = a - b; // b = a + b - b = a a = a - b; // a + b - a = b -------------------------------------------------------- int a = 2; int b = 7; a = a ^ b; b = a ^ b; a = a ^ b;
2023-10-16 14:04:58
int a = 2; int b = 7; a = a + b; b = a - b; // b = a + b - b = a a = a - b; // a + b - a = b -------------------------------------------------------- int a = 2; int b = 7; a = a ^ b; b = a ^ b; a = a ^ b;
下一篇:了解你的系统