问题 单项选择题

设有说明int(*ptr)[M],其中的标识符ptr是 (45)

A.M个指向整型变量的指针
B.指向M个整型变量的函数指针
C.一个指向具有M个整型元素的一维数组的指针
D.具有M个指针元素的一维指针数组,每个元素都只能指向整型变量

答案

参考答案:C

解析:
本题考查C语言中指针与数组的应用。
在C语言中,定义指针数组的方法是(数据类型*指针数组名[常量表达式]),而题目中给出的说明是int(*ptr)[M],因此,不是定义指针数组的方法,而是定义一个指向具有M个整型元素的一维数组的指针。

解答题
阅读理解

阅读理解。

     People need to relax and enjoy themse1ves.One way they can have a good time is to

watch a baseball game or another sports event.Even thousands of years ago,groups

of people gathered to watch skilled athletes(运动员).

      Over 2000 years ago in Greece,certain days in the year were festival days.These

were holidays when people stopped work and enjoyed themselves.They liked to watch

athletes take part in  races and other games of skill.

     The most important festival was held every four years at the town of Olympia.It was

held in honor of the Greek  god Zeus(Zus).For five days,athletes from all parts of the 

 Greek  world took part in the Olympic Games.At the Olympic Games,people could

watch them box,run,jump and so on.There was a relay race between two teams of

men in which a lighted torch(火矩)was passed from runner to runner.The Olympic

Games were thought to be so important that cities which were at war with one another had

to stop fighting.People were allowed to travel to the games safely.Thousands of people

came to Olympia from cities in Greece and from her colonies(殖民地)in Africa,Asia

and Italy.They met as friends to cheer their favorite athletes and to enjoy themselves.

 1.What happened in Greece over 2000 years ago?______

A.People stopped work and enjoyed themselves.

B.The cities there were often against one another.

C.People watched baseball games.

D.People didn’t go to any games at all.

 2.What were those countries in Africa?_____

A.Friends.    

B.Enemies.

C.Colonies.    

D.Other cities.

3.What did people do at the games?______

A.They fought.       

B.They just talked to friends.

C.They cheered for good athletes.  

D.They tried to find friends.

4.Greek cities then were fighting so they_____.

A.were weak                  

B.were strong

C.couldn’t go to other cities freely  

D.could see each other

5.The best title for the story is“_____”.

A.Greece at War      

B.Together for the Games

C.Stop Fighting            

D.Sport