【单选题】【消耗次数:1】
以下程序执行后输出结果是() #include stdio.h main( ) { char s[]=\n123\\; printf(%d,%d\n,strlen(s),sizeof(s)); }
赋初值的字符串有错
6,7
5,6
6,6
参考答案:
复制
纠错
相关题目
【单选题】 下列程序执行后的输出结果是________. #include stdio.h void 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
【单选题】 下列程序执行后的输出结果是_______.#include stdio.h void 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
【单选题】 以下程序的执行结果是( ) main() { int n=9; while(n6) { printf(%d } }
①  987
②  876
③  8765
④  9876
【单选题】 以下程序的输出结果是(  )。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
①  101
②  6
③  4
④  3
【单选题】 以下程序的运行结果是(  )。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n
①  7
②  8
③  9
④  10
【简答题】 #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]。
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 以下程序的运行结果是[填空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=1;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
随机题目
【单选题】 I see the Russian soldiers standing on the ________ of their native land, guarding the fields.
①  threshold
②  frontiers
③  entrance
④  gate
【单选题】 In June 1941 Hitler suddenly launched an attack ______ Russia.
①  for
②  to
③  on
④  against
【单选题】 When I awoke on the morning of Sunday, the news was brought ______ me ______Hitler’s invasion of Russia.
①  for…of
②  to…on
③  to… of
④  for… on
【单选题】 Hitler was wrong and we should ______ to help Russia.
①  go out all@go all out
②  make out all
③  make all out
【单选题】 This is no time to moralize ______ the follies of countries which have allowed themselves to be struck down one by one.
①  to
②  on
③  by
④  in
【单选题】 Hitler was however wrong and we should ______ to help Russia.
①  make all out
②  make out all
③  go all out
④  go out all
【单选题】 In June 1941 Hitler suddenly ______ an attack on Russia.
①  launched
②  exerted
③  developed
④  created
【单选题】 He said that everyone should turn their backs _____ a craving for fame and prestige.
①  for
②  down
③  up
④  on
【单选题】 The subjugation of the western Hemisphere______ his will…
①  to
②  in
③  according to
④  against
【单选题】 We shall ______ all our friends and allies in every part of the world to take the same course and pursue it.
①  appeal to
②  appeal for
③  appeal with
④  appeal of