网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序运行时,若从键盘输入:1 2 3<回车>。输出结果是#include <stdio.h>main(){ int i=2,j=2,k=2; scanf("%d%*d%d",&i,&j,&k); printf("%d%d%d\n",i,j,k);}
参考答案
更多 “ 以下程序运行时,若从键盘输入:1 2 3回车。输出结果是#include stdio.hmain(){ int i=2,j=2,k=2; scanf("%d%*d%d",i,j,k); printf("%d%d%d\n",i,j,k);} ” 相关考题
考题
已知字符A的ASCII代码值为65,以下程序运行时,若从键盘输入:B33。则输出结果是______。 incl
已知字符A的ASCII代码值为65,以下程序运行时,若从键盘输入:B33<回车>。则输出结果是______。 #include "stdio.h" main() { char a,b; a=getchar();scanf("Xd",b); a=a-'A'+'0';b=b*2; printf("%c%c\n",a,b); }A.2 BB.1 BC.3 BD.4 B
考题
有以下程序: 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 numberB.another number anotherC.another number numberD.number number
考题
有以下程序: 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 numberB.another number anotherC.another number numberD.number number
考题
有以下程序: 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 numberB.another number anotherC.another number numberD.number number
考题
有以下程序:includemain(){char k; int i; for(i=1;i
有以下程序: #include <stdio.h> 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 numberB.another number anotherC.another numberD.number number
考题
有以下程序 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 anothorB.another number numberC.another numberD.number number
考题
已知字符A的ASCII代码值为65,以下程序运行时若从键盘输入:B33<回车>,则输出结果是________。 main() { char a,b; a=getchar();scanf("%d",b); b=b*2; printf("%cn",b); }
热门标签
最新试卷