问题 单项选择题

有定义语句:int*p[4];以下选项中与此语句等价的是( )。

A) int p[4];
B) int **p;
C) int*(p[4]);
D) int(*p)[4];

答案

参考答案:C

解析: int *p[2];首先声明了一个数组,数组的元素是int型的指针。int(*p)[2];声明了一个指针,指向了一个有两个int元素的数组。其实这两种写法主要是因为运算符的优先级,因为[]的优先级比*高。所以第一种写法,p先和[]结合,所以是一个数组,后与*结合,是指针。后一种写法同理。

完形填空
完形填空。
     Waiting for the airplane to take off, I was happy to get a seat by myself. Just then, an airline hostess 
  1   me and asked, “Would you mind changing your seat? A couple would like to sit together.” The only
other   2   seat was next to a woman   3   both arms in casts(石膏), a black-and-blue face, and a
depressed emotion. “  4   am I going to sit there” was my immediate thought.   5   then a deeper, quieter
voice spoke, “Opportunity.” Finally I took my new seat and discovered that Kathy had been in an auto
accident, and she was on her way for   6  .
     When the snack of nuts and juice arrived,   7   did not take me long to realize that Kathy would not be able to  8   herself. I considered offering to feed her but   9  , as it seemed too close and familiar a service
to offer to a stranger. But then I decided that Kathy’s need was more important than my   10  . I offered
to help her eat, and although she too was uncomfortable about   11   it, she did. The experience was
pleasant, and she and I   12   close in a short period of time.   13   the end of the five-hour trip, my heart
was fully   14  , and the time was   15   better spent than if I had just sat by myself.
     I was very glad I had reached beyond my comfort zone to sit next to Kathy and feed her.   16  
sometimes flows beyond human borders and dissolves the fears   17   keep us separate. When we stretch
to serve another, we grow to live in a larger, more   18   world.
     Help me move   19   the small self so I can connect with the hearts of others. 
     When I give love to another, I   20   my own soul.
( )1. A. touched      
( )2. A. suitable    
( )3. A. with        
( )4. A. No case      
( )5. A. So          
( )6. A. holidays    
( )7. A. that        
( )8. A. help        
( )9. A. held up      
( )10. A. discomfort  
( )11. A. attending  
( )12. A. grew        
( )13. A. To          
( )14. A. awake      
( )15. A. increasingly
( )16. A. Love        
( )17. A. what        
( )18. A. answering  
( )19. A. toward      
( )20. A. meet        
B. attracted
B. available
B. around  
B. No way  
B. Otherwise
B. treatment
B. what    
B. dress    
B. kept up  
B. guilt  
B. accepting
B. kept    
B. In      
B. alone  
B. properly
B. Self    
B. that    
B. demanding
B. across  
B. calm    
C. approached
C. acceptable  
C. for        
C. No manners  
C. And        
C. sightseeing
C. this        
C. support    
C. gave up    
C. convenience
C. concerning
C. stayed      
C. From        
C. alive    
C. reasonably  
C. Care        
C. whether    
C. rewarding
C. beyond      
C. serve      
D. conducted  
D. comfortable
D. from      
D. No means  
D. But        
D. interview  
D. it        
D. drink      
D. cheered up 
D. situation
D. b ehaving
D. remained  
D. By         
D. asleep  
D. certainly  
D. Sympathy  
D. when       
D. offering
D. through    
D. feed      
单项选择题