问题
单项选择题
设有以下程序:struct st{int n;struct st *next;};static struct st a[3]={5,&a[1],7,&a[2],9,'\0'},*p;p=&a [0]; 下面选项中,表达式值为6的是______。
A.p++->n
B.p->n++
C.(*.n++
D.++p->n
答案
参考答案:D
设有以下程序:struct st{int n;struct st *next;};static struct st a[3]={5,&a[1],7,&a[2],9,'\0'},*p;p=&a [0]; 下面选项中,表达式值为6的是______。
A.p++->n
B.p->n++
C.(*.n++
D.++p->n
参考答案:D