【简答题】【消耗次数: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]。
参考答案:
复制
纠错
相关题目
【简答题】 #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]
随机题目
【简答题】 Translate the following sentence into ChineseThis is an important meeting. Please see to it that you are not late for it.
【简答题】 Translate the following sentence into English.他比赛失败在很大程度上是由于粗心。
【简答题】 Direction: Fill in the blanks with the wordsor phrasesgiven below. Change the form if necessary.[tender; suffer; in anxiety; crave; choke; plague; with a sigh; dull; nonsense; threshold]2. Fish and seabirds mistake plastic for food and[填空1]to death.
【简答题】 Direction: Fill in the blanks with thephrases given below. Change the form if necessary.[sell out; in other words; consist of; stand for; rely on; demand for; engage in; at hand; yield to; confront with]6. A great deal will be[填空1]him as he is the director of the organization.
【简答题】 Directions: Fill in the blanks with the words given below. Change the form if necessary.(pros and cons; allocation; update; complexity; infancy; initially; minimal;strategically; grab; digest)7. The solution to this problem are in their[填空1].
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[dodge; mean; tease; disability; regular; bonus; proclaim; universal]2. Shy film stars[填空1]cameras.
【简答题】 Direction: Fill in the blanks with the wordsor phrasesgiven below. Change the form if necessary.[tender; suffer; in anxiety; crave; choke; plague; with a sigh; dull; nonsense; threshold]4. You will[填空1]one day for your carelessness.
【简答题】 为什么说中共十一届三中全会是你新中国成立以来伟大的历史转折?
【简答题】 近代中国的主要矛盾是[填空]的矛盾,[填空]的矛盾。
【简答题】 党在过渡时期总路线的核心内容是“一化三改”,其中“一化”是[填空]。