问题
填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
main()
int x=10, y=20, t=0;
if(x==y)t=x; x=y; y=t;
printf("%d%d\n", x, y);
答案
参考答案:200
解析: 语句if(x==y)t=x; x=y; y=t;等价于if(x==y){t=x;
以下程序运行后的输出结果是______。
#include<stdio.h>
main()
int x=10, y=20, t=0;
if(x==y)t=x; x=y; y=t;
printf("%d%d\n", x, y);
参考答案:200
解析: 语句if(x==y)t=x; x=y; y=t;等价于if(x==y){t=x;