单项选择题
以下合法的字符型常量是【 】。
A.'\x13'
B.'\081'
C.'65'
D."\n"
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有定义语句:int a=1,b=2,c=3,x;,则以下选项中各程序段执行后,x的值不为3的是( )。
A.if (c<a) x=1; else if (b<a) x=2; else x=3;
B. if (a<3) x=3; else if (b<a) x=2; else x=1;
C. if (a<3) x=3; if (a<2) x=2; if (a<1) x=1;
D.if (a<b) x=b; if (b<c) x=c; if (c<a) x=a;
点击查看答案
单项选择题
有以下程序main( ){ char k; int I;for(i=1;i<3;i++){ scanf(“%c”,&k);switch(k){ case ‘0’: printf(“another n”);case ‘1’: printf(“number n”); } } }程序运行时,从键盘输入:01,程序执行后的输出结果是( )。
A.another number
B.another number another
C.another number number
D.number number
点击查看答案
相关试题
有以下程序:#include<stdlib.h>struct...
下面程序的功能是输出以下形式的金字塔图案...
以下程序中函数scmp的功能是返回形参指针s...
以下程序中函数f( )的功能是将n个字符串...
有以下程序:float f1(float n){ re...