设有定义:struct test{int x;int y} t;则下面的叙述不正确的是_________。
举一反三
- 下面是关于结构类型与变量的定义语句,错误的是________。 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;
- 设有以下说明语句struct ex{ int x;float y; char z; } example;则下面的叙述中不正确的是_________
- 设有定义语句”struct {int x;int y;} d....x*d[1].x)”输出的是( )
- 以下结构体定义错误的是 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;