#include <stdio.h>
int main()
{
int a = 1;
int b = 3;
printf("a=%d,b=%d\n", a, b);//不会有溢出问题
a = a ^ b;
b = a ^ b;
a = a ^ b;
printf("a=%d,b=%d\n", a, b);
return 0;
}
标签:main,return,int,数值,互换,printf,include,溢出
From: https://blog.51cto.com/u_16168351/6601654