• 2022-06-08
    下列对结构体类型变量定义不正确的是( )
    A: struct teacher { int num; int age; }teach1;
    B: struct { int num; int age; }teach1,teach2;
    C: struct { int num; int age; }teacher; struct teacher teach1;
    D: struct teacher { int num; int age; }; struct teacher teach1;
  • C

    内容

    • 0

      以下结构体的定义语句中,正确的是______。? struct student {int num; char name[10];int age;}stu;|struct {int num; char name[10];int age;}student; struct student stu;|struct student {int num; char name[10]; int age;}; student stu;|struct student {int num; char name[10];int age;};stu;

    • 1

      以下对结构类型变量的定义中错误的是( ) A: B: define STUDENT struct student STUDENT {int num;float age;} std1; C: struct {int num; float age; } std1; struct student std1; D: struct student {int num; float age; } std1; E: struct {int num; float age; } std1;

    • 2

      以下对结构体类型变量的定义中不正确的是( )。 A: B: define STUDENTstruct studentSTUDENT {int num; float age;}stdl; C: struct student{ int num; float age; }stdl; D: struct{ int num;float age; }std1; E: struct{ int num;floatage; }student;struct studentstd1;

    • 3

      若有定义: struct teacher { int num; char sex; int age; }teacher1; 则下列叙述不正确的是

    • 4

      以下对结构类型变量的定义中不正确的是(  ) 未知类型:{'options': ['#define STUDENT struct studentSTUDENT{int num;float age;}std1;', 'struct student{int num;float age;}std1;', 'struct student{int num;float age;float age;}std1;', 'struct student{int num;}student;struct student'], 'type': 102}