三种方法:加法、异或法、乘除法
#include <stdio.h>
//第一种方法:
int main(int argc, char const *argv[])
{
int a = 2,b = 5,c = 2,d = 5,e = 1,f = 5;
a = a + b;
b = a - b;
a = a - b;
printf("a = %d b = %d\n",a,b);
c = c ^ d;
d = c ^ d;
c = c ^ d;
printf("c = %d d = %d\n",c,d);
e = e*f;
f = e/f;
e = e/f;
printf("e = %d f = %d\n",e,f);
return 0;
}