【单选题】【消耗次数:1】
以下程序的输出的结果是()。 int x=3; main( ) int i; for(i=1;i<x;i++)incre( );incre( ) staic int x=1; x*=x+1; printf( %d, x);
25
26
27
28
参考答案:
复制
纠错
相关题目
【简答题】 以下程序输出的结果是[填空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”);}
【单选题】 以下程序的输出结果是_______? f(int b[],int m,int n) { int i,s=0; for(i=m;in;i=i+2) s=s+b[i]; return s; } int main() { int x,a[]={1,2,3,4,5,6,7,8,9}; x=f(a,3,7); printf(%d\n,x); }
①  7
②  8
③  9
④  10
【单选题】 以下程序段的运行结果是( )。 for(y=1;y) y=((x=3*y,x+1),x-1); printf(x=%d,y=%d,x,y);
①  x=27,y=27
②  x=12,y=13
③  x=15,y=14
④  x=y=27
【简答题】 以下程序段输出的结果是[填空1]。#include stdio.hvoid main(){int x=1;do printf(%d\n,x-=2);while(!(--x));}
【单选题】 有以下程序,程序执行后的输出结果是( ) #include int fun(int x [ ],int n) { static int sum=0,i; for(i=0; i{ sum+=x[i]; } return sum; } void main( ) { int a[ ]={1,2,3,4,5}; int b[ ]={6,7,8,9},s=0; s=fun(a,5)+fun(b,4); printf(%d\n,s); }
①  45
②  50
③  60
④  66
【简答题】 以下程序段输出的结果是[填空1]。#include stdio.hvoid main(){int x=3;do{printf(″%3d″,x-=2);}while(!(--x));}
【单选题】 下面程序的输出结果是() main( ) {int x=40,y=4,z=4; x=y==z; printf(%d,x); x=x==(y-z); printf(%d,x); }
①  40
②  41
③  11
④  10
【简答题】 分析下面程序main(){ int x=2,y,z;x*=3+2;printf(%d\nx*=y=z=4;printf(%d\nx=y=1;z=x++-1;printf(%d,%d\n,x,z);z+=-x++ +(++y);printf(%d,%d,x,z); }程序的输出结果是[填空1]。
随机题目
【单选题】 It is a huge task to ______ all the rooms in the building in such a short time.
①  go ahead with
②  keep up
③  clean up
④  work out
【单选题】 It is common knowledge that dogs have a _______ sense of smell.
①  thoughtful
②  slim
③  keen
④  absorbed
【单选题】 The old lady was _______ to the young man who helped her find her lost generation.
①  touched
②  cheerful
③  gratefu
④  generous
【单选题】 Helen lacks ______ . I’ve never known anyone so unsure of herself.
①  character
②  balance
③  approach
④  confidence
【单选题】 Don’t hesitate ______ for help if you have any problem meeting the schedule.
①  to ask
②  asked
③  asking
④  to be asked
【单选题】 Read the book carefully __________ you’ll find lots of information related to our research.
①  if
②  and
③  so
④  or
【单选题】 Our manager is so __________ in his thinking, he never listens to new ideas.
①  rigid
②  tedious
③  boring
④  vivid
【单选题】 Parts of my childhood are so _________ to me that they could be memories of yesterday.
①  prim
②  vivid
③  boring
④  tedious
【单选题】 _______ hard work, you don’t have much chance of success.
①  After
②  Without
③  With
④  Before
【单选题】 Here is a letter_________you.
①  on
②  for
③  in
④  about