• 2021-04-14
    若structstudent
    {intnum;
    intage;
    }stu[3]={{1001,18},{1002,19},{1003,20}};
    则下面语句中引用非法的是()
  • stu[3].num

    内容

    • 0

      设有以下说明structstudent{intnum;charsex;intage;}a1,a2;则下面的用法中不正确的是().

    • 1

      若有以下说明和定义语句,则下面引用形式中不正确的是 ( )。 struct student { int age; int num; }; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; struct student *p; p=stu;

    • 2

      中国大学MOOC: 有以下说明和定义语句,下面各输入语句中错误的是#include<stdio.h>intmain(){structstudent{intage;charsex;charname[8];};structstudentstd;structstudent*p=&std;.......return0;}

    • 3

      若有以下定义和语句: struct student {int num ;int age;}; struct student stu[3]={{l001,20},{1002,19},{1003,2l}}; main() {struct student *p;p=stu; ... } 则下列引用中不正确的是

    • 4

      对结构体类型变量定义不正确的是() A: #defineSTUDENTstructstrdentSTRDENT{charname;intnum;}std; B: structstudent{charname;intnum;}stu; C: struct{charname;intnum;}std; D: struct{charname;intnum;}student;structstudentstu;