1 #include<studio.h> 2 int main() 3 { 4 int a=5; 5 int b=6; 6 printf("a=%d b=%d\n",a,b); 7 int t; 8 t=a; 9 a=b; 10 b=t; 11 printf("a=%d b=%d\n",a,b); 12 return 0; 13 }
交换两个变量的内容
原文:https://www.cnblogs.com/onemusk/p/9481854.html