A.if(c<a)x=1; else if(b<a)x=2:else x=3; B.if(a<3)x=3:else if(a<2)x=2; else x=1; C.if(a<3) x=3;if(a<2) x=2;if(a<l)x=1; D.if(a<b) x=b;if(b<c) x=c;if(c<a) x=a;
单项选择题以下程序段运行的结果是()
A.15 B.17 C.18 D.19
单项选择题对于整型变量x,下属if语句()与赋值语句:x=x%2==0?1:0;不等价。
A.if(x%2!=0)x=0;elsex=; B.if(x%2)x=1;elsex=0 C.if(x%2==0)x=1;elsex=0 D.if(x%2==1)x=0;elsex=1
单项选择题以下程序的运行结果是()
A.-1 B.3 C.1 D.5
单项选择题以下程序段运行时,若从键盘输入10,则输出结果是()
A.2 B.11 C.3 D.12
单项选择题设有定义:char c;float f;int i;unsignedu;double d;下列各表达式的类型分别是()1.u+92.d!=f&&(i+2)3.8.2*i+c
A.1.unsigned,2.int,3.double B.1.double,2.double,3.double C.1.int,2.double,3.char D.1.unsigned,2.double,3.int