问题
填空题
下列循环的循环次数是______。
int k=2;
while(k=0)
printf("%d",k);
k--;
printf("\n");
答案
参考答案:0
解析: 解答本题需要注意表达式“k=0”,它是赋值表达式而不是关系表达式,不论k为何值,表达式 k=0总会使k为0,所以不能进入循环。
下列循环的循环次数是______。
int k=2;
while(k=0)
printf("%d",k);
k--;
printf("\n");
参考答案:0
解析: 解答本题需要注意表达式“k=0”,它是赋值表达式而不是关系表达式,不论k为何值,表达式 k=0总会使k为0,所以不能进入循环。
完形填空。 | ||||
The best woman in the world is my mother; the sweetest sound in the world is Mum's voice. Each day when I get back from school, I see my mother 1 in the kitchen, tired but happy. I really want to give her an embrace (拥抱). Mother often says, "Parents don't want 2 from their kids. The only thing they hope to do is that their kids have a happy life." My mother is 3 my classmate's mothers. When she gave birth to me, she was nearly 42 years old. When I become a university student, my mother will be 60 years old. My mother has been 4 for a long time. She suffers from (患) a very serious illness. Maybe she will never fully recover (痊愈). 5 she still works hard for me every day. I want to help her, but don't know 6 I can do or where I can start. Each time my mother can't 7 form her sick bed, I feel afraid and don't want to go to school. But my mother always says to me 8 , "You must go to school. I can look after myself." Hearing this, I wonder 9 I am a good son. The only thing I can do is to give her a warm embrace after school. Let's 10 more love and care to our mothers and let them know their kids really love them. | ||||
|