【单选题】【消耗次数:1】
设有定义:int m,n,a,b,c,d;和语句m=n=a=b=c=d=0;执行:(m=a==b)(n=c==d);后,m,n 的值分别是()。
0,0
0,1
1,0
1,1
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 设:inta=1,b=2,c=3,d=4,m=2,n=2;执行(m=a>b)&&(n=c>d)后n的值为()。
①  1
②  2
③  3
④  4
【单选题】 下列程序执行后的输出结果是 #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
【单选题】 下面程序的功能是将从键盘输入的一组字符统计出大写字母的个数m和小写字母的个数 n,并输出m、n中的较大数,则括号内应填写( )。 #include main() { int m=0,n=0; char c; while( )!=\n) { if(c>=A&&c=a&&c<=z) n++; } printf(%d\n,m<n? n:m );
①  C
②  c=getchar()
③  getchar()
④  c==getchar()
【单选题】 下列程序执行后的输出结果是________. #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
【简答题】 计算两个整数n和m(m1000)之间所有数的和。n和m从键盘输入。例如,当n=1,m=100时,sum=5050,当n=100,m=1000时,sum=495550。 #include#includemain() { int n,m; int sum; /************found************/[填空1] printf(\nInput n,m\n scanf(%d,%d,n, while( n=m ) { /************found************/[填空2] n++; } printf(sum=%d \n,sum); }
【单选题】 设有以下程序段:inta=1,b=10,c=1,x;x=ab||++c;printf(″%d,%d\n″,x,c);执行后输出的结果是(   )
①  0,0
②  0,1
③  1,0
④  1,1
【单选题】 下述程序的运行结果( )。 #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=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
【单选题】 设有定义:char a;int b;float c,double d;执行语句:c=a+b+c+d;后,变量c 的数据类()。
①  int
②  char
③  float
④  double
随机题目
【单选题】 anecdote
①  short amusing story
②  long tedious talk
③  uninteresting writing
④  exciting information
【单选题】 tussle
①  have a hard struggle or fight
②  raise to a higher grade
③  come to a lower level or state
④  make the greatest possible use of
【单选题】 delve
①  give oneself up
②  clasp carefully
③  search carefully and deeply
④  look down upon
【单选题】 pejorative
①  sharp
②  distasteful
③  contemptuous
④  penetrating
【单选题】 sinister
①  not pretended
②  suggesting evil
③  happening in the same time
④  giving orders
【单选题】 convict
①  criminal
②  aggressor
③  captain
④  captor
【单选题】 ultimatum
①  the general opinion about the character, qualities etc
②  state of being in demand
③  sth. that provokes or annoys
④  final statement of conditions to be accepted
【单选题】 intricate
①  difficult
②  complicated
③  invalid
④  simple
【单选题】 The Nazi regime is devoid ______ all theme and principle except appetite and racial domination.
①  of
②  away
③  from
④  for
【单选题】 Winant said the same would be true ______the U.S.A.
①  with
②  of
③  for
④  to