-->
当前位置:首页 > 题库 > 正文内容

Multiple choice:For the following program segment, the correct description is ().

Luz3年前 (2021-05-10)题库238
For the following program segment, the correct description is ().
```
char s[ ]="china";
char *p;
p = s;
```
@[D](1)
A. 's' and 'p' are exactly the same
B. The contents of array's' and pointer variable 'p' are equal
C. The length of array's' is equal to the length of string pointed by 'p'
D. '* p' is equal to's [0] '




A. 's' and 'p' are exactly the same
B. The contents of array's' and pointer variable 'p' are equal
C. The length of array's' is equal to the length of string pointed by 'p'
D. '* p' is equal to's [0] '


answer:D

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。