4. 假设变量a和b均为整型,以下语句可以不借助任何变量把a、b中的值进行交换。请填空。 a+=【】; b=a-【】

c++
2025年03月18日 14:01
有1个网友回答
网友(1):

int a,b;
a=3;b=5;
a+=b;
b=a-b;
a=a-b;
cout<//输出 5 3