若有以下说明和语句: struct st{int n;char * ch;}; struct st a[3]={5,"abc",7,"def",9,"ghk"},*p=a; 则值为6的表达式是 ______。
A.p++->n
B.p->n++
C.(*p).n++
D.++p->n
第1题:
若有下列说明和语句,则对结构体变量st中成员i的引用方式不正确的是( )。Struct stu{ int i; int name;}st,*p;p=&st;
A.st.i
B.*p.i
C.(*p).i
D.p->i
第2题:
若有以下说明和语句: struct st{int n;char *ch;}; struct st a[3]{5,"abc",7,"def",9,"ghk"},*p=a 则值为6的表达式是______。
A.p++->n
B.p->n++
C.(*p).n++
D.++p->n
第3题:
若有以下定义和语句 struct a { int n,m;}; struct a st[3]={{1,20},{2,19},{3,21}}; struct a*p=st; 则以下错误的引用是
A.(p++)->n;
B.st[0].n;
C.(*p).n;
D.p=&st.m;
第4题:
若有以下说明和语句: struct st{int n;char *ch;}; struct st a[3]={5,"abc",7,"def",9,"ghk"},*p=a; 则值为6的表达式是______。
A.p++->n
B.p->n++
C.(*p).n++
D.++p->n
第5题:
若有以下说明和语句: struct st{int n;char*ch;}; struct st a[3]={5,"abc",7,"def",9,"ghk"},*p=a; 则值为6的表达式是______。
A.p++->n
B.p->n++
C.(*p).n++
D.++p->n