下面是关于结构类型与变量的定义语句,错误的是________。
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 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 ord {int x; int y} struct ord a; B: struct ord {int x; int y} ; struct ord a; C: struct ord {int x; int y} a; D: struct {int x; int y} a;
- 下面结构体的定义语句中,正确的是( ) 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 ord{ int x; int y; int z;};struct ord a; B: struct ord{ int x; int y; int z;}struct ord a; C: struct ord{ int x; int y; int z;}a; D: struct{ int x; int y; int z;}a;
- 若有以下结构体,则正确的定义或引用是 struct Test int x; int y: v1; A: Test.x=10; B: Test v2;v2.x=10; C: struct v2;v2.x=10; D: struct Test v2=10;
- 设有定义:struct test{int x;int y} t;则下面的叙述不正确的是_________。