【简答题】【消耗次数:1】
#include stdio.hint main(){char a[ ]=I love China!,b[20];int i;for(i=0;*(a+i)!=\0i++)*(b+i)=*(a+i);*(b+i)=\0//printf(string a is:%s\n//printf(string b is:for(i=0;b[i]!=\0i++)printf(%c,b[i]);printf(\nreturn 0;}以上程序运行结果为[填空1]。
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【简答题】 #include stdio.hint main(){char *string=I love China!printf(%s\n,string);return 0;}以上程序运行结果为[填空1]。
【简答题】 #include stdio.hint main(){char string[]=I love China! printf(%s\n,string); printf(%c\n,string[7]); return 0;}以上程序运行结果为[填空1]。
【单选题】 下述程序的运行结果( )。 #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
【单选题】 以下程序的输出结果是()。 main( ) { int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=0; for(i=0;i for(j=i;j t=t+b[i][b[j][j]]; printf(%d\n,t); }
①  3
②  4
③  1
④  9
【单选题】 有以下程序,程序运行以后的输出结果是() #include stdio.h main( ) { int a[ ]={2,3,5,4},i; for(i=0;i switch(i%2) { case 0:switch(a[i]%2) {case 0:a[i]++;break; case 1:a[i]--; }break; case 1:a[i]=0; } for(i=0;i printf(\n); }
①  3 3 4 4
②  2 0 5 0
③  3 0 4 0
④  0 3 0 4
【简答题】 以下程序输出的结果是[填空1]。#include stdio.hvoid main(){ int x, i;for(i=1; i i++){ x=i;if(++x%2==0)if(++x%3==0)if(++x%7==0)printf(%d\n,x);}printf(“\n”);}
【简答题】 以下程序输出的结果是[填空1]。#include stdio.hvoid main(){ int x, i;for(i=1; i i++){ x=i;if(++x%2==0)if(++x%3==0)if(++x%7==0)printf(%d\n,x);}printf(“\n”);}
【简答题】 以下程序输出的结果是[填空1]。#include stdio.hvoid main(){int x, i;for(i=1; i i++){ x=i;if(++x%2==0)if(++x%3==0)if(++x%7==0)printf(%d\n,x);}printf(“\n”);}
【简答题】 #include stdio.hint main(){char a[]=I love China!,b[20],*p1,*p2;p1=a;p2=b; for(;*p1!=\0p1++,p2++)*p2=*p1; *p2=\0// printf(string a is:%s\n printf(string b is:%s\n return 0;}以上程序运行结果为string b is:[填空1]。
【单选题】 设有程序:则在程序中的两个括号中分别应填入() main( ) { int i,a[11]; printf(给数组赋值:\n); for (i=0;i scanf(%d,( )); ... ... printf(输出数组:\n); for(i=0;i printf(%d,,( )); }
①  a[i]和a[i]
②  a[i]和a[i]
③  a[i]和a[i]
④  a[i]和a[i]
随机题目
【简答题】 Thousands of years ago in Egypt (埃及), Kings built the pyramids (金字塔). They used to build them as their tombs (坟墓). The kings thought the pyramids would help them find life [填空1]death. They also wanted the world remember them as important people. Some pyramids were for queens, but they are [填空2]interesting because they are not so big. The[填空3]pyramid that we know today is the pyramid that we know today is the pyramid near Sahara ( 撒哈拉沙漠) in Egypt. It is about 5,000 years old. There are many pyramids along the Nile River (尼罗河). The largest is the pyramid of Khufu (法老胡夫). It is made of two million three hundred thousand huge stones, most of [填空4]higher than a person. It is about 144 meters high. Inside the pyramid[填空5]the burial rooms (墓室)for the king and queen and long passage (通道) ways [填空6]these rooms. The rest of the pyramid is solid (坚固的) stone. We know there were wonderful[填空7]in the pyramid. Robbers[填空8]into the pyramids and took many of these treasures (财宝). Today some of the treasures are in museums [填空9]. How did the people of ancient [填空10]build the pyramids?How did they carry and lift the huge stones? Each stone [填空11]so well and they didn’t have our[填空12]machines. Scientists[填空13]the pyramids but nobody can say just how they [填空14]. Some day if you can, you ought to go to see the pyramids. I[填空15]you that they would be amazing.1. A. beforeB. afterC. behindD. in front of2. A. moreB. lessC. noD. very3. A. eldestB. youngestC. oldestD. smallest4. A. themB. whomC. whichD. that5. A. there areB. there isC. areD. is6. A. toB. withC. forD. in7. A. treasureB. treasuresC. moneyD. gold8. A. cameB. wentC. brokeD. walked9. A. thoughB. howeverC. everD. since10. A. dayB. momentC. momentsD. days11. A. wearsB. fitsC. liftsD. carries12. A. freshB. electronicC. modernD. scientific13. A. have studiedB. will studyC. studiedD. were studying14. A. have done thatB. did soC. did itD. are doing it15. A. sureB. assureC. insureD. ensure
【单选题】 5.I will visit you if Father me.
①  let
②  lets
③  is letting
④  will let
【单选题】 9.“Has he seen this film?” “Yes. He _______ it several days ago.”
①  saw
②  has seen
③  had seen
④  was seeing
【单选题】 3.A hunter is a man who animals.
①  catch
②  catches
③  will catch
④  was catching
【单选题】 2.She the door before she goes away.
①  had locked
②  is locking
③  has locked
④  was locking
【单选题】 4.What if I drink this?
①  happens
②  is happening
③  will happen
④  is happened
【单选题】 10.Now Mike isn’t here. He _________ Mr. Green’s. Perhaps he _______ back in a few minutes.
①  went to; is coming
②  has gone to; will come
③  has been to ; will be
④  is going to; has come
【单选题】 6.Look out! That tree _______ fall down.
①  is going to
②  will be
③  shall
④  would
【单选题】 8.They can’t leave until they ______ their work.
①  did
②  are doing
③  have done
④  has done
【单选题】 1.When I saw Mary, she on the piano.
①  is playing
②  plays
③  was playing
④  played