-->
当前位置:首页 > 题库

单选题:以下代码:

Luz5年前 (2021-05-10)题库1030
以下代码:
```in
struct Student{
int n;
struct Student * next;
};
struct Student a[3]={5,&a[1],7,&a[2],9, NULL};
struct Student *p;
p=a;
```
那么,以下表达式不能够正确地访问到第3个结构体数组元素a[2]的成员n(其值为9)的是( )@[C](2)
A. p[2].n
B. (p+2)->n
C. *(p+2).n
D. p->next->next->n




A.p[2].n
B.(p+2)->n
C.*(p+2).n
D.p->next->next->n


答案:C