【单选题】【消耗次数:1】
以下不能输出字符A的语句是()(注:字符A的ASCII码值为65,字符a的ASCII码值为97)
printf(“%c\n”,’A’-32)
printf(“%d\n”,’A’);
printf(“%c\n”,65);
printf(“%c\n”,’B’-1);
参考答案:
复制
纠错
相关题目
【单选题】 若有语句char c1=`d`,c2=`g`;printf(“%c,%d\n”,c2-`a`,c2-c1);则输出结果为:()(a的ASCII码值为97)
①  M、2
②  G、3
③  G、2
④  D、g
【单选题】 巳知字母A的ASCII码是65,以下程序的执行结果是()#includestdio.hmain(){charc1=A,c2=Y;printf("%d,%d\n",c1,c2);
①  A,Y
②  65,65
③  65,90
④  65,89
【单选题】 字符常量\n和\\对应的ASCII码为( )。
①  110和92
②  10和92
③  92和92
④  78和47
【单选题】 字符常量\n和\\对应的ASCII码为( )。
①  110和92
②  10和92
③  92和92
④  78和47
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 请阅读以下程序: main() {int a=5,b=0,c=0; if(a=b+c) printf(***\n else printf($$$\n
①  以上程序:有语法错误不能通过编译
②  可以通过编译但不能通过连接
③  输出***
④  输出$$$
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  1
②  2
③  3
④  4
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【简答题】 有以下程序(说明:字符0的ASCII码值为48)#includestdio.hmain(){ char c1,c2;scanf(%d,c2=c1+9;printf(%c%c\n,c1,c2); }若程序运行时从键盘输入48回车,则输出结果为[填空1]。
【单选题】 下列程序执行后的输出结果是 #includevoid main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
随机题目
【判断题】 在循环队列中,若尾指针rear大于头指针front,其元素个数为rear-front。
①  正确
②  错误
【单选题】 队列是一个( )线性表结构。
①  不加限制的
②  推广了的
③  加了限制的
④ 
【单选题】 顺序栈存储空间的实现使用( )存储栈元素。
①  链表
②  数组
③  循环链表
④  变量
【单选题】 插入和删除只能在一端进行的线性表,称为( )。
①  队列
②  循环队列
③ 
④  循环栈
【判断题】 队列是限制在两端进行操作的线性表。
①  正确
②  错误
【单选题】 最大容量为n的循环队列,队尾指针是rear,队头是front,则队空的条件是( )。
①  (rear+1) % n==front
②  rear==front
③  rear+1==front
④  (rear-1) % n==front
【判断题】 栈是运算受限制的线性表。
①  正确
②  错误
【单选题】 设链栈中结点的结构:data为数据域,next为指针域,且top是栈顶指针。若想在链栈的栈顶插入一个由指针s所指的结点,则应执行下列( )操作。
①  s-next=top-next;top-next=s
②  top-next=s
③  s-next=top;top=top-next
④  s-next=top;top=s;
【单选题】 同一队列内各元素的类型( )。
①  必须一致
②  不能一致
③  可以不一致
④  不限制
【单选题】 栈和队都是( )。
①  顺序存储的线性结构
②  链式存储的非线性结构
③  限制存取点的线性结构
④  限制存取点的非线性结构