【单选题】【消耗次数:1】
设有一个名为file1源程序,且已知命令行为:FILE1BEIJINGSHANGHAI,则可得到以下运行结果BEIJINGSHANGHAI的程序为()
main(intargc,char*argv[]){while(--argc1)printf(%s\n,*++argv);}
main(intargc,char*argv[]){while(argc--=1)printf(%s\n,*++argv);}
main(intargc,char*argv[]){while(argc--1)printf(%s\n,*++argv);}
main(intargc,char*argv[]){while(argc1)prinif(%s\n,*++argv);}
参考答案:
复制
纠错
相关题目
【简答题】 #include stdio.hint main(){char string[]=I love China! printf(%s\n,string); printf(%c\n,string[7]); return 0;}以上程序运行结果为[填空1]。
【简答题】 #include stdio.hint main(){char *string=I love China!printf(%s\n,string);return 0;}以上程序运行结果为[填空1]。
【单选题】 以下程序执行后输出结果是() #include stdio.h main( ) { char s[]=\n123\\; printf(%d,%d\n,strlen(s),sizeof(s)); }
①  赋初值的字符串有错
②  6,7
③  5,6
④  6,6
【单选题】 #includevoid main() { int n=4; while(n--) printf(%d\n,--n); }
①  2 0
②  1 0
③  2 1
④  3 0
【单选题】 下述程序的运行结果( )。 #includevoid main() { char ch; int i=0; for(ch=achzch++) { printf(%c ,ch); if(i%10==0) printf(\n } printf(\n }
①  a b c d e f g h i j k l m n o p q r s t u v w x y z
②  a b c d e f g h i j k l m n o p q r s t u v w x y z
③  a b c d e f g h i j k l m n o p q r s t u v w x y z
④  a b c d e f g h i j k l m n o p q r s t u v w x y z
【单选题】 #define X a+b main( ) { int a=3,b=4,s1; s1=2*X; printf(%d\n,s1); },以上程序的运行结果是( )?
①  8
②  14
③  10
④  6
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=1;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 下面程序的运行时,输入CLanguage↙,输出是[填空1]。#includestdio.hvoid main( ){ char str[30];scanf(%s,str); printf(%s,str);}
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=8;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
随机题目
【单选题】 下列哪个监督主体的监督不直接产生相应的法律后果
①  一般监督
②  社会监督
③  司法监督
④  立法监督
【单选题】 审计署的最高领导人是
①  国务院总理
②  国务院副总理
③  国家主席
④  国家副主席
【单选题】 按照评估的层次划分,可分为
①  宏观评估 、中观评估、微观评估
②  经济绩效评估、政治绩效评估
③  文化绩效评估、社会绩效评估
④  近期评估、中期评估、远期评估
【单选题】 在行政管理全局中处于基础性地位的是
①  组织绩效
②  管理绩效@执行绩效
③  监督绩效
【单选题】 在行政管理中处于承上启下的地位是指
①  组织绩效
②  管理绩效
③  执行绩效
④  监督绩效
【单选题】 在行政管理中起着目标定位和导向作用
①  组织绩效
②  执行绩效
③  经济绩效
④  行政绩效
【单选题】 绝不允许出现“虚监””漏监“现象体现行政监督的原则是
①  经常性的
②  民主性的
③  实效性的
④  法制化的
【单选题】 监督政府的重要力量的是
①  审计监督
②  社会监督
③  司法监督
④  立法监督
【单选题】 在公民的监督中具有及时性特点的形式是
①  举报
②  信访
③  控告和申诉
④  批评和建议
【单选题】 各国政府普遍受到效率与公平的悖论问题的困扰,究其根源的问题是
①  国家性质
②  政治制度
③  社会制度
④  行政绩效