【单选题】【消耗次数:1】
以下程序的运行结果是:main){intk=4,a=3,b=2,c=;printf\n%d\n,k<a?k:c<b?c:a);}
4
3
2
1
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的运行结果是( )。 Main() {int k=4,a=3,b=2,c=; printf(\n %d\n,ka?k:cb?c:a); }
①  4
②  3
③  2
④  1
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  1
②  2
③  3
④  4
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,1,3
②  4,5,6
③  5,0,3
④  3,4,7
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,0,3
②  4,5,6
③  5,1,3
④  3,4,6
【单选题】 有如下程序: #includevoid main( ) { int a=2,b=-1,c=2; if (ab) if (b0) c=0; else c++; printf(%d\n } 该程序的输出结果是
①  0
②  1
③  2
④  3
【单选题】 设:inta=1,b=2,c=3,d=4,m=2,n=2;执行(m=a>b)&&(n=c>d)后n的值为()。
①  1
②  2
③  3
④  4
【单选题】 下面程序的运行结果是()。#includestdio.hmain(){FILE*fp;inta=2,b=4,c=6,k,n;fp=fopen("test.dat","w");fprintf(fp,"%d\n",a);fprintf(fp,"%d%d\n",b,c);fclose(fp);fp=fopen("test.dat","r");fscanf(fp,"%d%*d%d",k,printf("%d%d\n",k,n);fclose(fp);}
①  24
②  26
③  42
④  62
【单选题】 以下程序的运行结果是()。func(inta,intb){intc;c=(ab)?(a-b):(a+b);return(c);}main(){intx=7,y=3;printf("%d\n",func(x,y));}
①  3
②  4
③  7
④  10
随机题目
【单选题】 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
【单选题】 The discovery of new oil-fields in various parts of the country filled the government with_____ hope
①  eternal
②  infinite
③  ceaseless
④  everlasting