【简答题】【消耗次数:1】
分析下面程序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]。
参考答案:
复制
纠错
相关题目
【单选题】 下面程序的输出结果是() 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=-1,z=2; if(xy) if(y0) z=0; else z+=1; printf(%d\n }
①  3
②  2
③  1
④  0
【单选题】 执行下面程序:main(){intx=1,y=1,z=1;x=x+++y+++z++;printf("%d,%d,%d",x,++y,z++);}输出的结果为()
①  4,3,2
②  3,3,2
③  3,3,3
④  3,2,2
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 5 1
②  1 7 0
③  3 7 0
④  5 5 0
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t
①  1 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 5 1
②  3 7 0
③  5 5 0
④  1 7 0
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 设有如下定义:int x=0,y=3,z; 则语句printf(%d\n,z=(x%y,x/y));的输出结果是
①  1
②  0
③  4
④  3
【单选题】 判断x是否最大值的程序,则填空处应填写_______.#include stdio.h void main( ) { int x,y,z; scanf(%d%d%d,x,y, if (_______) printf(最大值是:%d, x); }
①  (x=y)(x=z)
②  (x=y) || (x=z)
③  (x=z)
④  (x=y) (y=z)
【单选题】 执行下面程序后,运行结果是 #includevoid main( ) { int x=41,y=1; if (x%3==0 x%7==0) { y+=x;printf(y=%d\n} else {y=x;printf(y=%d} }
①  y=41
②  y=43
③  y=42
④  y=1
随机题目
【单选题】 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.One correct way to deal with anger is to __________.
①  say nothing no matter how angry you are
②  express anger openly and freely right away
③  express your anger immediately but calmly
④  think about whether its worth getting angry
【单选题】 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.Some doctors argue that people who often let the anger out would become __________.
①  stronger
②  more violent
③  angrier
④  more dangerous
【单选题】 They drew different ______________ from the facts.
①  attentions
②  examinations
③  decisions
④  conclusions
【判断题】 公司股东可以出资的方式有货币、土地使用权、劳务、信用、知识产权等方式。
①  正确
②  错误
【判断题】 有限责任公司的董事任期每届不得超过3年,连选可以连任。
①  正确
②  错误
【判断题】 公司股东会决议内容违反公司章程的无效
①  正确
②  错误
【判断题】 保证属于法定担保。
①  正确
②  错误
【判断题】 合同解除可以引起合同终止。
①  正确
②  错误
【判断题】 定金的数额由当事人约定,但不得超过主合同标的的20%。
①  正确
②  错误
【判断题】 以公司的信用基础为标准,将公司分为总公司与分公司。
①  正确
②  错误