A.100
B.120
C.201
D.101
[单选题]有如下程序 a=100 Do s=s +a a=a+1 Loop While a>120 Print a 运行时输出的结果是( )。A.100B.120C.201D.101
[单选题]有如下程序: a = 100 Do s=s+a a=a+1 Loop While a > 120 Print a 运行时输出的结果是( )。A.100B.120C.201D.101
[单选题]有如下程序 a=100 Do s=s+ a a=a+1 Loop While a>120 Print a 运行时输出的结果是( )。A.100B.120C.201D.101
[单选题]有如下程序 a=100 D。 s=s+a a=a+1 Loop While a>120、 Print a 运行时输出的结果是( )。A.100B.t20C.201D.101
[单选题]有如下的程序: int f(char*s) { char *p=s; while(*p!='/0') p++; return(p-s); }如果在主程序中用下述语句调用上述函数,则输出结果为______。 printf("%d/n",f("best one!"));A.3B.6C.8D.9
[单选题]( 19 )有如下程序段:int i=1;while (1) {i++;if(i == 10) break;if(i%2 == 0) cout << '*';}执行这个程序段输出字符 * 的个数是A. ) 10B. ) 3C. ) 4D. ) 5
[单选题]( 19 )有如下程序段:int i=5;while ( int i=0 ) {cout 《 '*';i--;}运行时输出 "*" 的个数是A. ) 0B. ) 1C. ) 5D. )无穷
[单选题]有如下程序段:int i=1:while(1){i++;if(i==210) break;if(i%2==0) cout<<‘*’;}执行这个程序段输出字符*的个数是A.10B.3C.4D.5
[单选题]若有如下程序: void a(char*p,char c) {while(*p) { if(*p==c)*p=c-'b'+'B';; p++; } } main() {char s[50]="abcdeeffgee",b='e'; a(s,b);printf("%s/n",s); } 则程序运行后的输出结果是( )。A.AbcdeeffgeeB.ABCDeeFFGeeC.abcdEEffgEED.ABCDEEFFGEE
[单选题]有如下程序:includemain(){ int n=9;while(n>6){n££;printf("%d",n);}}该程序的输出结有如下程序: #include<stdio.h> main() { int n=9; while(n>6){n--;printf("%d",n);} } 该程序的输出结果是( )。A.987B.876C.8765D.9876