#include<stdio.h> int main() { int a = 100; int b = 200; a = a^b; b = a^b;//此处可以看成b = a ^ b ^ b = a ^ 0 = a a = a^b;//同理 a = a ^ b ^ a = b ^ 0 = b return 0; }
#include<stdio.h> int main() { int a = 100; int b = 200; a = a + b; b = a - b; a = a - b; return 0; }