问题 单项选择题

设p1和p2是指向一个int型一维数组的指针变量,k为int型变量,则不能正确执行的语句是

A) k=*p1+*p2 B) p2=k;
C) p1=p2;
D) k=*p1* (*p2);

答案

参考答案:B

解析: 本题主要考查了一维数组指针的赋值和用指针引用数组元素进行运算。选项B)中p2为指向int型变量的指针,而k为int型变量,不能将int型变量直接赋值给指向int型变量的指针,所以选项B)错误,应为p2=82k。

单项选择题
填空题

Questions


·You will hear five conversations taking place in restaurants and the customers are complaining about something.
·Before you listen, read the list of statements, five of which are summaries of how these problems are solved.
·Then listen carefully and match the statements (A-F) with the conversations that are about them respectively.
·There is one extra statement that you don’t need to use. You will hear the passage twice.
A. it is suggested that she change her order to some sirloin because it is tender.
B. She is asked to send in the bill if she likes to have it cleaned.
C. The head waiter goes to fetch some clean ones immediately.
D. He offers to sponge it with a little warm water.
E. He is advised to choose another wine instead.
F. The head waiter will deal with it himself.

Questions


·You will hear five conversations taking place in restaurants and the customers are complaining about something.
·Before you listen, read the list of statements, five of which are summaries of how these problems are solved.
·Then listen carefully and match the statements (A-F) with the conversations that are about them respectively.
·There is one extra statement that you don’t need to use. You will hear the passage twice.
A. it is suggested that she change her order to some sirloin because it is tender.
B. She is asked to send in the bill if she likes to have it cleaned.
C. The head waiter goes to fetch some clean ones immediately.
D. He offers to sponge it with a little warm water.
E. He is advised to choose another wine instead.
F. The head waiter will deal with it himself.