如果有下面的定义和赋值,则下面哪个访问方式不正确。struct SNode {unsigned id;int data;}n,*p; p=&n;
A. p.data
B. n.data
C. p->data
D. (*p).data
根据下面的定义,能输出名为Mary的语句是()。struct person{ char name[9];int age;} struct person class[5]={"John",17,"Paul",19,"Mary",18,"Adam",16};
A. printf("%s\n",class[1].name);
B. printf("%s\n",class[2].name);
C. printf("%s\n",class[3].name);
D. printf("%s\n",class[0].name);