求输出结果?main() int a=1,b=2;a=a+b;b=a-b;a=a-b;printf(“%d,%d\n”,a,b);
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 05:18:42
求输出结果?main()inta=1,b=2;a=a+b;b=a-b;a=a-b;printf(“%d,%d\n”,a,b);求输出结果?main()inta=1,b=2;a=a+b;b=a-b;a=
求输出结果?main() int a=1,b=2;a=a+b;b=a-b;a=a-b;printf(“%d,%d\n”,a,b);
求输出结果?main() int a=1,b=2;a=a+b;b=a-b;a=a-b;printf(“%d,%d\n”,a,b);
求输出结果?main() int a=1,b=2;a=a+b;b=a-b;a=a-b;printf(“%d,%d\n”,a,b);
a=a+b=1+2=3
b=a-b=3-2=1
a=a-b=3-1=2
这三条语句就是把ab值互换,所以输出结果是2,1