【单选题】【消耗次数:1】
若i为整型变量,则以下循环执行次数是(). for(i=2;i==0;) printf(%d,i--);
无限次
0次
1次
2次
参考答案:
复制
纠错
相关题目
【单选题】 若i为整形变量,则以下循环执行次数是( )。 for (i=2;i==0) printf(%d,i--)
①  无限次
②  0次
③  1次
④  2次
【简答题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是[填空1]。for (i=3;i;i--)for (j=0;jj++)
【简答题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是[填空1]。for (j=0;jj++)for (i=5;i;i--){...}
【单选题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是(  )。for (i=5;i;i--)for (j=0;jj++){...}
①  30
②  25
③  24
④  20
【单选题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是(  )。for (i=5;i;i--)for (j=0;jj++){...}
①  20
②  24
③  25
④  30
【单选题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是(  )。for (i=5;i;i--)for (j=0;jj++){...}
①  25
②  20
③  24
④  30
【单选题】 若i,j已定义为int类型,则以下程序段中内循环体的总的执行次数是(  )。for (i=4;i;i--)for (j=0;j5;j++){...}
①  20
②  24
③  25
④  30
【单选题】 以下循环体的执行次数是#include stdio.hvoid main(){ int i,j; for(i=0,j=1; i i=i+2) j--; }
①  3
②  2
③  1
④  0
【判断题】 for(i=1;i=100;i++)的执行次数为99次
①  正确
②  错误
【单选题】 有以下程序,程序运行以后的输出结果是() #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
随机题目
【单选题】 When she saw the clouds, she went back to the house to ____ her umbrella.
①  bring
②  fetch
③  take
④  carry
【单选题】 The new cut in interest rate ____ promote domestic investment.
①  means to
②  directs toward
③  is meant to
④  leads to
【单选题】 —__________fine day it is today!—Yes, the sunshine is__________beautiful that Id like to go swimming in the sea.
①  How, such
②  What a, very
③  How, so
④  What a, so
【单选题】 By cutting down trees we ____ the natural home of birds and animals.
①  harm
②  hurt
③  injure
④  damage
【单选题】 Nowadays, many people suffer from _________ depression under the pressure of working.
①  acute
②  sharp
③  quick
④  cute
【单选题】 Something must have happened on their way. Or they_____ by now.
①  should have arrived
②  should arrive
③  would have arrived
④  would arrive
【单选题】 The treasury issued an order stating that ____ land purchased from the government had to be paid for in gold and silver.
①  henceforth
②  moreover
③  whereby
④  however
【单选题】 If a substance is dissolved in water or heated, it may ____ a gas.
①  give into
②  give over
③  give off
④  give away
【单选题】 A(n)____ person is one who has much knowledge and the ability to use it well.
①  smart
②  intelligent
③  clever
④  wise
【单选题】 The actress wanted a hat to ____ her dress.
①  go by
②  go through
③  go out
④  go with