下列变量命名正确的是()
A: Teacher_2
B: teacherName
C: $Age
D: 123number
A: Teacher_2
B: teacherName
C: $Age
D: 123number
举一反三
- 下列对结构体类型变量定义不正确的是( ) 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;
- 下列对结构类型变量不正确的定义是 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: name B: age C: _teacher D: 1num
- 下列哪个选项是不符合规范的变量命名 A: 变量1 B: abc 123 C: _xyz D: x
- 以下语句是正确的变量声明语句的是()。 A: var name = "张三" ; B: var null = 123 ; C: var name = "张三",age = 18 ; D: var name , age ;