【简答题】【消耗次数:1】
以下程序的输出结果是[填空1]。#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 }
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的输出结果是(  )。#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
【单选题】 以下程序运行后,a的值是()。main(){inta,b;for(a=1,b=1;aa++){if(b=20)break;if(b%3==1){b+=3;continue;}b-=5;}}
①  101
②  100
③  8
④  7
【单选题】 下列程序执行后的输出结果是________. #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
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是(  )。
①  0
②  1
③  2
④  3
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是。
①  0
②  1
③  2
④  3
【单选题】 以下程序的输出结果是() int a, b; void fun( ) { a=100; b=200; } main( ) { int a=100, b=100; fun( ); printf(%d%d \n, a,b); }
①  100200
②  100100
③  200100
④  200200
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); } case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=1,b=1
②  a=2 ,b=1
③  a=2,b=2
④  a=3,b=3
【单选题】 下列程序执行后的输出结果是 #includevoid 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(){  intx=1,a=0,b=0;  switch(x){  case0:b++;case1:a++;case2:a++;b++;}  printf(“a=%d,b=%d\n”,a,b);}该程序的输出结果是()
①  a=2 b=1
②  a=1 b=1
③  a=1 b=0
④  a=2 b=2
随机题目
【简答题】 赵树理的短篇小说[填空]是其成名作。
【简答题】 小说[填空]分为《惶惑》《偷生》和《饥荒》三部。
【多选题】 以下哪些是老舍的作品。()
①  A. 《老张的哲学》
②  《猫城记》
③  《二马》
④  《人间喜剧》
【简答题】 情境的三个层次是什么?
【简答题】 [填空1]小说一般字数在三万到六万之间。
【简答题】 [填空1]材料是指写作者用来提炼和表现文本思想的那些事实、现象、理论、言论、数据等等。
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[chore; talent; crowded; earnings; finance; festive; memorable; sacrifice; smash; reproduction]4. The fund has been used largely to[填空1]the construction of federal prisons.
【简答题】 Directions: Fill in the blanks with the phrases given below. Change the form if necessary.[comprise of; vote for; access to; wake up; be hooked to; in the long run; work at; to ones joy; pay off; be associated with]5. He[填空1]in the morning to find himself alone in the house.
【简答题】 Direction: Fill in the blanks with thephrases given below. Change the form if necessary.[set off; after all; attach to; burst into laughter; lean against; teach...a lesson; take off; come to sense; give in to]4. There is no need to pick at him all day long. Hes a child[填空1].
【简答题】 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]3. Weve seen huge increases[填空1]and depression in young people.