有以下说明和定义语句 struct student { int age;char num[8]; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu;}; 以下选项中引用结构体变量成员的表达式错误的是A.(p++)->numB.p->numC.(*p).numD.stu[3].age

题目

有以下说明和定义语句 struct student { int age;char num[8]; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu;}; 以下选项中引用结构体变量成员的表达式错误的是

A.(p++)->num

B.p->num

C.(*p).num

D.stu[3].age


相似考题
更多“有以下说明和定义语句struct student{int age;char num[8]; struct student stu[3]={{20,"200401 ”相关问题
  • 第1题:

    有以下的结构体变量定义语句: struct student { int num; charname[9]; } stu; 则下列叙述中错误的是()。

    A.结构体类型名为stu

    B.num是结构体成员名

    C.struct是C的关键字

    D.结构体名为student


    B

  • 第2题:

    有以下的结构体变量定义语句: struct student { int num; charname[9]; } stu; 则下列叙述中错误的是()。

    A.结构体类型名为stu

    B.num是结构体成员名

    C.struct是C的关键字

    D.结构体类型名为student


    B

  • 第3题:

    以下结构体的定义语句中,正确的是______。

    A.struct student {int num; char name[10];int age;};stu;

    B.struct {int num; char name[10];int age;}student; struct student stu;

    C.struct student {int num; char name[10];int age;}stu;

    D.struct student {int num; char name[10]; int age;}; student stu;


    struct student {int nmu; char name[10]; int age;} stu;

  • 第4题:

    3.有以下说明和定义语句 struct student { int age; char num[8];}; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu; 以下选项中引用结构体变量成员的表达式错误的是______。

    A.(p++)->num

    B.p->num

    C.(*p).num

    D.stu[3].age


    C

  • 第5题:

    有以下说明和定义语句,则下列选项中引用结构变量成员的表达式中错误的是()。 struct student { int age; char num[8]; }; struct student stu[3] = {{20, "200401"},{21, "200402"},{19, "200403"}};

    A.stu[0].age

    B.stu[2].num

    C.stu[1].num

    D.stu[3].age


    oat b;