填空题 以下程序的输出结果是 【10】
main()

int a=1,b=2;
a=a+b;b=a-b;a=a-b;
printf("%d,%d/n",a,b);


  • 1、
【正确答案】 1、2,1    
【答案解析】[解析] 程序的功能是交换a和b的值,输出a和b的值为2,1。