在下面的条件语句中(其中S1个S2表示C语言语句),只有()在功能上与其他三个语句不等价。
A. if(a) S1 else S2
B. if(a==0) S2elseS1
C. if(a!=0) S1else S2
D. if(a==0) S1elseS2
查看答案
读程序题:请先阅读下面的代码intx=1;inty=2;if(x%2==0){y++;}else{y--;}printf("y=%d",y);上面一段程序运行结束时,变量y的值为
读程序题:#includemain(){inta=1,b=3,c=5;if(c==a+b)printf("yes\n");elseprintf("no\n");}运行结果为:
读程序题:#include main(){ int x=2,y= -1,z=5;if(x
读程序题:下面一段程序运行结束时,输出结果为( )。int x=1;int y=2;if(x%2){y++;}else{y--;}printf("y=%d",y);