【单选题】【消耗次数:1】
以下程序的输出结果是() int a, b; void fun( ) { a=100; b=200; } main( ) { int a=100, b=100; fun( ); printf(%d%d \n, a,b); }
100200
100100
200100
200200
参考答案:
复制
纠错
相关题目
【单选题】 下列程序的输出结果是()。 #include fun(int *a,int *b) {int *w;*a=*a+*a;*w=*a; *a=*b; *b=*w;} main( ) {int x=9,y=5,*px=fun(px,py);printf(%d, %d\n,x,y);}
①  出错
②  18,5
③  5,9
④  5,18
【单选题】 有以下程序,程序执行后的输出结果是( ) #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
【单选题】 下列程序执行后的输出结果是________. #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
【单选题】 下列程序执行后的输出结果是 #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
【单选题】 以下程序的输出结果是(  )。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
①  101
②  6
③  4
④  3
【单选题】 以下程序段:int i,a=3,b=2;i=(--a==b++)?--a:++b;printf(i=%d a=%d b=%d,i,a,b);输出结果是。
①  i=1 a=1 b=3
②  i=3 a=2 b=3
③  i=4 a=1 b=4
④  i=4 a=2 b=4
【简答题】 以下程序的输出结果是[填空1]。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
【单选题】 下面程序的输出是 int fun3(int x) {static int a=3; a+=x; return(a); } void main() {int k=2,m=1,n; n=fun3(k); n=fun3(m); printf(%d\n }
①  3
②  4
③  6
④  9
【单选题】 下面程序的输出结果是 #includevoid main() { int a=5,b=3; float x=3.14, y=6.5; printf(%d,%d\n,a+b!=a-b,x=(y-=6.1)); }
①  1,0
②  0,1
③  1,1
④  0,0
随机题目
【单选题】 The government enacted new laws to ________________ terrorism(恐怖主义).
①  fight for
②  fight against
③  fight in
④  fight at
【单选题】 Anger is a normal emotion that we all feel from time to time. Some people express anger openly in a calm reasonable way. Some explode with anger, and scream and shout. But other people keep their anger inside. They can not or will not express it. This is called repressing anger. Many doctors think that repressing anger is more dangerous to a person’s health than expressing it. They say that when a person is angry, the brain gives out the same hormones (荷尔蒙) as that are produced during tense and nervous situations. They speed the heart rate and raise blood pressure, so the person feels excited and ready to act. Repressing these feelings will only make the feelings continue, and this can lead to many medical problems. To prevent these problems, these doctors suggest letting the anger out by expressing it freely. But recently some other doctors question this. They say that people who express anger repeatedly and violently become, in fact, more but not less angry. And this could cause medical problems. However, some doctors say that both repressing and expressing anger can be dangerous. They believe that those who express anger strongly may be more likely to develop heart diseases, and that those who keep their anger inside may face a greater danger of high blood pressure. Doctors say the solution is to learn how to deal with anger. The first step is to admit that you are angry and to recognize the real cause of the anger, and then to decide if the cause is serious enough to get angry about. If it is, do not express your anger while angry. Wait until your anger has cooled down, and express yourself calmly and reasonably. Doctors also say that a good way to deal with anger is to find humor in the situation that has made you angry, for laughter is much healthier than anger.What is the main idea of this passage?
①  Anger should be dealt with in a proper way.
②  Different people deal with anger in different ways.
③  Doctors suggest dealing with anger by repressing it.
④  The best way to deal with anger is to laugh when angry.
【单选题】 It is _____________ that today people in some remote areas know about the rest of the world.
①  difficult
②  amazing
③  inferior
④  superior
【单选题】 They dont____________ the importance of this problem.
①  understands
②  understood
③  understanding
④  understand
【单选题】 The people who ____________ cars work very quickly.
①  astonish
②  assemble
③  afford
④  acquire
【单选题】 Tommy: Mommy, when will we have dinner? I’m starving.Mother: __________ We have to wait for Daddy.
①  OK, honey.
②  Quickly, honey.
③  Soon, honey.
④  All right, honey.
【单选题】 He____________ cold and hunger a great deal.
①  escaped from
②  suffered from
③  kept away from
④  came from
【单选题】 Youdonthavetobeinsuchahurry,Iwouldratheryou________onbusinessfirst.
①  wouldgo
②  willgo
③  went
④  havegone
【单选题】 He____________ her out of her money.
①  chatted
②  changed
③  cheated
④  chose
【单选题】 Now it is illegal (非法的) to kill ______________ for their ivories.
①  tigers
②  lions
③  elephants
④  birds