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
单项选择题在下列运算符中,优先级最高的运算符是()
A. B. C. D.
单项选择题若有定义:int a=6,b=2;charc1=’a’,c2=’b’;则表达式a+b%5+c2-c1的值是()
A.7 B.8 C.9 D.表达式错误