题目内容

设有程序段:char s[]=”Hello”; char *p ; p=s;则下面叙述正确的是()

A. s和p 完全相同
B. 数组s中的内容和指针p中的内容相等
C. s数组长度和p所指向的字符串长度相等
D. *p与s[0]相等

查看答案
更多问题

若已定义char s[5]; 则在下面表达式中不能表示s[1]的地址的是()

A. s+1
B. s++
C. &s[0]+1
D. &s[1]

若有以下定义,则赋值正确的是()int a , b , *p;float c, *q;

A. p = &c
B. q=p
C. p = NULL
D. p = b

Directions: In this section, you'll hear some long conversations. At the end of each conversation, some questions will be asked. Both the conversation and the questions will be spoken only once. After each question, choose the best answer from the four choices marked A, B, C, and D.Questions 10 to 12 are based on the conversation you have just heard.10.

A. Judging people’s behaviour.
B. All the causes of anger.
C. People’s attitudes can’t be changed.
D. The effects of negative behaviour.

11.

A. When people can’t control the other person’s behaviour.
B. When the causes of the behaviour are obvious.
C. When the consequences of the behaviour are unpleasant.
D. When the behaviour is unexpected.

答案查题题库