问题 填空题

以下程序运行后的输出结果是______。
struct NODE
int k;
struct NODE *link;
;
main()
struct NODE m[5],*pm,*q=m+4;
int i=0;
while(P!=q)
p->k=++i;p++;
q->k=i++;q--;

q->k=i;
for(i=0;i<5;i++)printf("%d",m[i].k);
printf("\n");

答案

参考答案:13431

解析: 本题程序定义了一个结构体NODE,在主函数中声明了一个该结构体的数组m[5]和两个结构体指针p和q,并使p指向m[0],q指向m[4]。在while循环中,p、q分别向后向前遍历数组m,直到p、q指向同一个元素。同时使p所指结构体的成员k等于++i的值,q所指结构体的成员k等于i++的值。i从0开始,当循环体执行两遍后,p==q,循环结束,此时i为4,p、q都指向m[2],所以q->k=i;也就是m[2].k=4。最后输出:13431。

完形填空
完形填空。
     The first time I (Jimmy Carter) fully realized how much our lives had changed was when I approached my seventieth birthday. In one of her hour-long special   1   Barbara Waiters spoke with me about things I had done. She covered all the   2   of my life, from the farm to submarines, and from business to the governor's mansion. Most of all, she asked me about my life of   3   in the White House as president and my return home. Then she asked me a question that   4   some serious thought. "Mr. President," she said, "you have had a number of exciting and challenging   5  . What have been your best years?" After a few moments I responded with   6   certainty:"Now is the best time of all." She was   7   and asked, "Why?"
     I fumbled with (笨嘴拙舌地说出) some thoughts about time. I also said something about spending more time with my family, and finding time to   8   some of my former errors. Afterward I realized how   9   my glib (口齿伶俐的) answer had been. Then I discussed with Rosalynn how  10  different-and pleasant-was the reality of our senior years.
     This book is my expanded attempt,  11  on our personal experience, to answer that question. I described,  12 , the virtues of aging. This is, after all, the name of the book: The Virtues of Aging.
     We are not  13  in our worry about the physical aspects of aging. Neither are we by ourselves in the prejudice that  14  toward the elderly. It is similar to racism or sexism.  15  makes it different is that the prejudice also exists among those of us who are either within this group or rapidly approaching it. When I  16  the title of this book to a few people, most of them responded with the same answer. " 17 ?" they asked. "What could possibly be good about  18  old?" The most  19  answer, of course, is to consider the alternative to aging.  But there are  20  of other good answers. Many of them included in this book are based on our personal experiences and observations.
( )1.A. reports       
( )2.A. aspects       
( )3.A. study         
( )4.A. enquired      
( )5.A. careers       
( )6.A. abundant        
( )7.A. joyful         
( )8.A. reform         
( )9.A. inconvenient   
( )10.A. deeply         
( )11.A. based          
( )12.A. in consequence 
( )13.A. single handed  
( )14.A. resists      
( )15.A. What            
( )16.A. referred       
( )17.A. Virtues      
( )18.A. keeping         
( )19.A. reliable       
( )20.A. plenty       
B. questions    
B. ways        
B. position    
B. required     
B. employments     
B. absolute     
B. pleased      
B. adjust      
B. inefficient  
B. completely  
B. established 
B. I in result  
B. alone        
B. consists     
B. It           
B. mentioned    
B. Qualities   
B. going        
B. easy         
B. abundance    
C. interviews 
C. styles    
C. occupation
C. inquired  
C. pursuits   
C. absent     
C. surprised  
C. correct   
C. ineffective
C. firmly     
C. supported  
C. in response
C. unaided    
C. exists    
C. That      
C. indicated  
C. Advantages       
C. growing   
C. obvious   
C. load       
D. speeches    
D. patterns    
D. service     
D. acquired    
D. businesses  
D. abrupt      
D. delighted   
D. right       
D. inadequate   
D. strongly    
D. centered    
D. in fact      
D. lonely      
D. assists     
D. Which       
D. pronounced            
D. Values      
D. coming      
D. correct     
D. sufficient  
名词解释