//交换内容,无临时变量(初)
#include<stdio.h> int main() { int a=10; int b=20; a=a+b; b=a-b; a=a-b; printf("a=%d\n",a); printf("b=%d\n",b); return 0; }
时间: 2024-10-13 04:47:37
//交换内容,无临时变量(初)
#include<stdio.h> int main() { int a=10; int b=20; a=a+b; b=a-b; a=a-b; printf("a=%d\n",a); printf("b=%d\n",b); return 0; }