问题 填空题

以下程序运行后的输出结果是 【17】
#include <stdio, h>
#include <string, h>
main( )
char ch[] ="abc".,x[3] [4]: int i:
for(i=0;i<3:i ++) strcpy(x[i] ,ch):
for(i =0;i<3:i++) printf( "% s" ,&x[i] [i]);
printf(" \n" )

答案

参考答案:abcbcc

解析: for循环用strcpy函数将字符数组ch的值"abc",分别复制给二维数组x的每一行,然后通过for循环先后打印出以x[0][0],x[1][1],x[2][2]开头的字符串"abe","bc","c",所以输出结果为:abcbcc。

多项选择题
单项选择题

Are you a man or a mouse When people ask this question they want to know (1) you think you are a (2) person or a coward. But you will never really know the answer to this question (3) you are tested in real life. Some people (4) they are brave but when they come face to face with real (5) , they act like cowards. Others think of themselves as cowards, but when they meet danger, they act like (6) .Lenny had always thought of himself as a (7) person. He got worried before examinations. He worried about his job and health. All he wanted in life was to be safe and healthy. (8) , on January 15th, 2002, a plane crashed into the Potomac River in Washington. Lenny went to the river to See what was happening. He saw a woman in the (9) water. Lenny did not feel afraid. He kept very (10) and did a very dangerous thing. He jumped into the Potomac, (11) to the woman, and kept her head (12) the water. Seventy-eight people died that day. Thanks to Lenny, it was not (13) .When you are in a very (14) situation and feel afraid, the body automatically produces a chemical in the blood. The chemical is called adrenalin. (15) adrenalin in the blood system, you actually feel per and per and are (16) to fight or run away. However, when you are absolutely terrified, the body can produce too much adrenalin. Where this (17) , the muscles become very hard and you find you (18) move at all. You are then paralyzed with fear. This is (19) when we are very frightened, we sometimes say we’re "petrified". This word comes from the Greek word "petros", which means "stone". We are (20) frightened that we become stonelike.

第(8)空应选择()

A.So

B.Therefore

C.Then

D.Actually