查看: 785|回复: 1

以解决!请教一个C语言的程序

 关闭 [复制链接]

签到天数: 7 天

连续签到: 0 天

[LV.3]小小虾米II

发表于 2008-4-8 18:30 | 显示全部楼层 |阅读模式
程序如下
#include<stdio.h>
main()
{ int x=0,y=0;
if (x=y) printf(\"AAA\");
else printf(\"BBB\");
}
请问答案为什么是\"BBB\",谢谢!
PCOS系统下载站:http://zhuangji.wang

签到天数: 7 天

连续签到: 0 天

[LV.3]小小虾米II

 楼主| 发表于 2008-4-8 18:30 | 显示全部楼层

以解决!请教一个C语言的程序

程序如下
#include<stdio.h>
main()
{ int x=0,y=0;
if (x=y) printf(\"AAA\");
else printf(\"BBB\");
}
请问答案为什么是\"BBB\",谢谢!
PCOS系统下载站:http://zhuangji.wang
回复 支持 反对

使用道具 举报

本版积分规则