下列定义方式中,不正确的是 。
A: union {int a ;,int b} ;
B: union {int a ; int b} ;
C: typedef int interger
D: struct {int a ; int b} a;
A: union {int a ;,int b} ;
B: union {int a ; int b} ;
C: typedef int interger
D: struct {int a ; int b} a;
举一反三
- 以下选项中不能正确把cor定义成结构体变量的是______。 A: struct{ int red; int green; int blue;} cor; B: struct color cor{ int red; int green; int blue;}; C: struct color{ int red; int green; int blue;} cor; D: typedef struct{ int red;int green;int blue;}COLOR;COLOR cor;
- 下面是关于结构类型与变量的定义语句,错误的是________。 A: struct test{int a; int b; int c;}; struct test y; B: struct test{ int a; int b; int c;} struct test y; C: struct test{ int a; int b; int c;} y; D: struct { int a; int b; int c;} y;
- 下面结构体的定义语句中,正确的是( ) A: struct { int x; int y; int z;}ord;struct ord a; B: struct { int x; int y; int z;}ord;ord a; C: struct ord{ int x; int y; int z;};struct ord a; D: struct { int x, int y, int z;}a;
- 下列对结构类型变量不正确的定义是 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;