【单选题】【消耗次数:1】
先参与运算后自增的是
i++
++i
--i
i=1
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【简答题】 C语言中,++i是先[填空1],后[填空2];i--是先[填空3],后[填空4]。
【单选题】 执行语句for(i=1;i++后变量i的值是( )。
①  3
②  4
③  5
④  不定
【单选题】 若int i=10; 执行下列程序后,变量i的正确结果是( ) switch ( i ) { case 9: i+=1; case 10: i+=1; case 11: i+=1; default : i+=1; }
①  13
②  12
③  11
④  10
【单选题】 执行intj,i=1;j=-i;后j的值是()
①  -1
②  -2
③  1
④  2
【单选题】 执行语句int i = 1, j = ++i; 后i与j的值分别为( )。
①  1与1
②  2与1
③  1与2
④  2与2
【单选题】 下列程序段的循环结构执行后,i的输出值是_______。 Dim y as Integer For i = 1 To 10 Step 2 y = y + i Next i Print i
①  25
②  10
③  11
④  因为y初值不知道,所以不确定
【单选题】 下述程序的运行结果( )。 #includevoid main() { int i; for(i=1;i+1;i++) { if(i4){printf(%d\t,i++);break;} printf(%d\t,i++); } }
①  1 3 5
②  1 2 3
③  1 3 4
④  1 4 5
【单选题】 以下程序段运行后s的值是()。 int a[3][3]={1, 2, 3, 4, 5, 1, 2, 3, 4} ; int i, j, s=1; for(i=0; i for(j=i+1; j s+=a[i][j];
①  6
②  120
③  7
④  240
【单选题】 有以下程序,程序运行以后的输出结果是() #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
【判断题】 for(i=1;i=100;i++)的执行次数为99次
①  正确
②  错误
随机题目
【单选题】 “If anybody ___, please put down ___ name,” said the teacher to the monitor.
①  ?wants to buy the book/his
②  ?want to buy the book/their
③  ?will buy the book/one’s
④  ?wants to have the book bought/her
【单选题】 The rich ___ not always happy.
①  are
②  is
③  will
④  may
【单选题】 About 60 percent of the students ___ from the south, the rest of them ___ from the north and foreign countries.
①  are/is
②  are/are
③  is/are
④  are
【单选题】 Now Tom with his classmates ___ football on the playground.
①  play
②  are playing
③  plays
④  is playing
【单选题】 Comrade Li Dazhao,___ librarian of Beijing University, was one of the founders of the Chinese Communist Party.
①  sometimes
②  sometime
③  some times
④  some time
【单选题】 At first Bob was puzzled by Virginia s waving, but then it __ his mind that she was trying to tell him something.
①  crossed
②  passed
③  occurred
④  opened
【单选题】 If there were no subjunctive mood, English ___ much easier.
①  will be
②  would have been
③  could have been
④  would be
【单选题】 The open university was started in order to help those who ___ having a university education when they were young.
①  stopped
②  failed
③  missed
④  ceased
【单选题】 If it ___ next week, the crops would be saved.
①  rains
②  will rains
③  would rain
④  should rain
【判断题】 This material is worn well.
①  正确
②  错误