问题 填空题

有下列程序: #include<stdio.h> main() {char c; while((c=getchar())!=’,’)putchar(++C) ; } 程序运行时,如果从键盘输入:A,B,<CR>,则输出结果为______。

答案

参考答案:B

解析: 因为c是字符类型变量,它只能接收一个字符,所以c=A,字符型变量在参与算术运算的时候是用其相应的ASCII码参与运算的,这样抖c得到字母B的ASCII码,用putchar函数输出是输出其相应的字符,所以是B。

单项选择题

Modern liberal opinion is sensitive to problems of restriction of freedom and abuse of power. (1) , many hold that a man can be injured only by violating his will, but this view is much too (2) . It fails to (3) the great dangers we shall face in the (4) of biomedical technology that stems from an excess of freedom, from the unrestrained (5) of will. In my view, our greatest problems will be voluntary self-degradation, or willing dehumanization, as is the unintended yet often inescapable consequence of sternly and successfully pursuing our humanization (6) .

Certain (7) and perfected medical technologies have already had some dehumanizing consequences. Improved methods of resuscitation have made (8) heroic effort to "save" the severely ill and injured. Yet these efforts are sometimes only partly successful: They may succeed in (9) individuals, but these individuals may have sever brain damage and be capable of only a less-than-human, vegetating (10) . Such patients have been (11) a death with dignity. Families are forced to bear the burden of a (12) "death watch".

(13) the ordinary methods of treating disease and prolonging life have changed the (14) in which men die. Fewer and fewer people die in the familiar surroundings of home or in the (15) of family and friends. This loneliness, (16) , is not confined to the dying patient in the hospital bed. As a group, the elderly are the most alienated members of our society: Not yet (17) the world of the dead, not deemed fit for the world of the living, they are shunted (18) . We have learned how to increase their years, (19) we have not learned how to help them enjoy their days. Yet we continue to bravely and feverishly push back the frontiers (20) death.

9()

A.supporting

B.rescuing

C.replacing

D.retrieving

问答题 简答题