下列变量定义形式正确的是?
A: int age,year,float, salary;
B: int myAge,year;float salary;
C: int _age,3year;float my_salary;
D: int age;int return;float salary;
A: int age,year,float, salary;
B: int myAge,year;float salary;
C: int _age,3year;float my_salary;
D: int age;int return;float salary;
举一反三
- 在如下结构体定义中,不正确的是()。 A: struct teacher{ int no; char name[10]; float salary;}; B: struct tea[20]{ int no; char name[10]; float salary;}; C: struct teacher{ int no; char name[10]; float salary; }tea; D: struct{ int no; char name[10]; float salary; }tea;
- 以下对结构体类型变量的定义中不正确的是( )。 A: struct{ int num; float age; }student; struct student std1; B: define STUDENT struct student STUDENT{ int num; float age; }std1; C: int num; float age; }std1; D: struct{ int num; float age; }std1;
- 以下结构体类型变量的定义中不正确的是( )。 A: B: define STUDENT struct student STUDENT{ int num; float age; }std1; C: struct student { int num; float age; } std1; D: struct { int num; float age; }std1; E: struct{ int num; float age; } ; struct student std1;
- 以下对结构类型变量的定义中错误的是( ) 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;
- 22. 以下对结构体类型变量的定义错误的是( )。 A: B: define STU struct student STU {float height; int age; }std1; C: struct student {float height; int age; }std1; D: struct {float height; int age; }std1; E: struct {float height; int age; }student; struct student std1;