问题 单项选择题

若有定义int a[10],*p=a,则p+6表示( )。

A) 数组元素a[5]的值
B) 数组元素a[5]的地址
C) 数组元素a[6]的地址
D) 数组元素a[0]的值加上5

答案

参考答案:C

解析: 旨针中存放的是变量的地址,指针也可以进行加减运算,这时指针移动的最小单位是一个存储单元,而不是一个字节。所以题中p+6指的是将指针向后移动了6个存储单元,指向a[6],存放的是a[6]的地址。

阅读理解
阅读理解。
     Welcome to the zoo. You can see the Indian elephants and the new tigers from America. The bears are waiting(等着) to meet you, and the monkeys from China are waiting to throw things at you. The lovely
dogs are waiting to laugh at you.
Opening Time(开放时间)
Monday to Friday
8:30~18:30
Saturday and Sunday
8:00~20:00
Fees(费用)
Adults0&人)      $8.00
15~17 years old    $6.00
8~14 years old     $3.00
Under 8 years old     Free(免费)
      Keep the zoo clean! Do not touch(触摸), give food or go near the animals!
1.On Sunday, the zoo opens at _________.
A.10:00 in the morning                
B.8:00 in the morning  
C.6:00 in the afternoon                
D.8:00 in the evening
2.The zoo opens ________ days a week.
A.two            
B.five            
C.six            
D.seven
3.You are thirteen years old. If(如果) you want to go to the zoo, yon should pay(付款)_____  
A.$3            
B.$6            
C.$8              
D.nothing
4.Mr. Smith and Bob go to the zoo. Bob is seven years old. How much do they pay to enter(进入)the
zoo ?
A.$3          
B.$6        
C.$8          
D.$11
5.Which of the following can we do in the zoo?
A.To give some food to the dogs.      
B.To touch the monkeys on the heads.
C.To go near the bears.              
D.To watch the animals outside the cages(笼子).
解答题