以下变量名命名错误的是()
A: name
B: age
C: _teacher
D: 1num
A: name
B: age
C: _teacher
D: 1num
举一反三
- 以下变量命名规范正确的是 A: $num B: 1num C: num D: num1
- 以下不合法的变量名是 A: name B: apple_price C: num D: *age
- 下列对结构类型变量不正确的定义是 A: struct teacher{ int num; int age; }teacher1; B: struct{ int num; int age; }teacher1,teacher2; C: struct{ int num; int age; }teacher D: struct teacher{ int num,age; }a;
- 下列对结构体类型变量定义不正确的是( ) 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;
- 若已定义: struct student {int num; char sex; int age; }stu1; 叙述错误的是( ) A: stu1是结构类型名 B: num,sex,age都是结构变量stu1的成员 C: stu1是用户定义的结构类型变量名 D: struct student是结构类型名