以下选项中不能正确把cl定义成结构体变量的是( )。
A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; }
C.struct color { int red; int green; int blue; }cl;
D.struct { int red; int green; int blue; }cl;
第1题:
下面结构体的定义语句中,错误的是( )。
A.struct ord{int x;int y;int z;};struct ord a;
B.struct ord{int x;int y;int z;};ord a;
C.struct ord{int x;int y;int z;}a;
D.struct{int x;int y;int z;}a;
第2题:
以下对结构体类型变量的定义中,不正确的是______。
A.typedef struct aa { int n; float m; }AA; AA td1;
B.#define AA struct aa AA {int n; float m; }td1;
C.struct {int n; float m; }aa; srtuct aa td1:
D.struct {int n; float m; }tdl;
第3题:
以下选项中不能正确把cl定义成结构体变量的是
A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; }
C.struct color { int red; int green; int blue; } cl;
D.struct { int red; int green; int blue; } cl;
第4题:
以下选项中不能正确把c1定义成结构体变量的是
A.typedef struct { int red; int green;; int blue; }COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; };
C.struet color { int red; int green; int blue; }c1;
D.struct { int red; int green; int blue; }cl;
第5题:
以下对结构体类型变量td的定义中,错误的是 ______。
A.typedef struct aa
B.struct aa {int n; {int n; float m; float m; }AA; }td; AAtd; struct aa td;
C.struct
D.struct {int n; {int n; float m; float m; }aa; }td; struct aa td;
第6题:
若定义下列结构体,结构体变量p的出生年份赋值正确的语句是( )。 struct st { int x; int y; int z; } struct worker { char name[20]; char sex; struct st birth; }p;
A.x=1987
B.birth.x=1987;
C.p.birth.x=1987;
D.p.x=1987;
第7题:
以下对结构体类型变量的定义中,不正确的是_______。
A.typedef struct aa { int n; float m; }aa; aa td1;
B.#define aa struct aa aa{ int n; float m; }td1;
C.struct { int n; float m; }aa; struct aa td1;
D.struct { int n; float m; }td1;
第8题:
若有以下语句:typedef struct S{int 9;char h;}T;以下叙述中正确的是( )。
A.可用s定义结构体变量
B.可用T定义结构体变量
C.S是struct类型的变量
D.T是struct S类型的变量
第9题:
下列选项中不能正确定义结构体的是_______。
A.typedef struct
B.struct color cl {int red; {int red; int green; int green; int blue; int blue; }COLOR; }; COLOR cl;
C.struct color
D.struct {int red; {int red; int green; int green; int blue; int blue; }cl; }cl;
第10题:
以下对结构体类型变量td的定义中,错误的是
A.typedef struct aa { int n; float m; }AA; AA td;
B.stmct aa{ int n;float m;}td;stmct aa td;
C.struct { int n; float m; }aa; struct aa rd;
D.struct{ int n;float m;}td;
第11题:
下列对结构及其变量定义错误的是( )。
A.struct My Struct { int num; char ch; }
B.struct MyStruct { int num; char ch; }My;
C.strut { int num; char ch; }My;
D.struct { int num; char ch; };
第12题:
以下对结构体类型变量td的定义中,错误的是( )。
A.typedef struct aa { int n; float m; }AA; AA td;
B.struct aa { int n; float m; }td; stmct aa td;
C.stmct { int n; float m; }aa; stmct aa td;
D.struct { int n; float m; }td;
第13题:
下面结构体的定义语句中,错误的是( )。
A.struct ord{int x;int Y;int Z;};struet 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;
第14题:
以下选项中不能正确把c1定义成结构体变量的是
A.typedef struct {int red: int green: int blue; } COLOR; COLOR c1;
B.struct color c1 {int red int green: int blue; };
C.struct color {int red , int green : int blue : )cl;
D.struct {int red; int green; int blue } c1 ;
第15题:
下列对结构及其变量定义错误的是( )。
A.struct My Struct
B.struct MyStruct{ {int num; int num;char ch; char ch;} }My;
C.strut
D.struct{ {int num; int num;char ch; char ch;}My; };
第16题:
以下对结构体类型变量的定义中,不正确的是( )
A.typedef struct aa { int n; float m; }AA; AA tdl;
B.#define AA struct aa AA{ int n; float m; }tdl;
C.struct { int n; float m; }aa; struct aa tdl;
D.struct { int n; float m, }tdl;
第17题:
下列结构体类型说明和变量定义中正确的是( )。
A.typedef struct {int n; char c;}REC; REC t1,t2;
B.struct REC; {int n; char c;}; REC t1,t2;
C.typedef struct REC; { int n=0; char c='A';} t1,t2;
D.stmct { int n; char c;} REC; REC t1,t2;
第18题:
下面结构体的定义语句中,错误的是
A.struct ord{int x;int y;int z;};struet ord a;
B.atruet ord{int x;int y;int z;}struct ord a;
C.struet ord{int x;int y;int z;}a;
D.struct{int x;int y;int z;)a;
第19题:
下面结构体的定义语句中,错误的是( )。
A.struct ord{int x;int Y;int z;}struct ord a;
B.struct ord{int x;im Y;im z;};struct ord a;
C.struct ord{int x;int Y;int Z;}a;
D.struct{int x;int Y;int z;}a;
第20题:
以下对结构体类型变量td的定义中,错误的是______。
A.typedef struct aa { int n; float m; }AA; AA td;
B.struct aa { int n; float m; }td; struct aa td;
C.struct { int n; float m; }aa;
D.struct { int n; float m; }td; struct aa td;
第21题:
以下选项中能正确把c1定义成结构体变量的是( )。
A.typedef struct { int red; int red; int green; int blue; }COLOR; COLOR c1;
B.struct color c1 { int red int red; int green int blue; };
C.stmctcolor { int red, int green; int blue; }c1;
D.struct { int red; int green; int blue; }c1;
第22题:
下列关于结构型变量的定义语句中,错误的是( )
A.typedef struct CCC
B.define GGG struct { char name[20];GGG CCC { char name[20]; int age; int age; }GGG; }; GGG abc ; GGG CCC abc;
C.struct
D.struct { char name[20]; { char name[20]; int age; int age; }ccc; }abc; CCC abc;
第23题:
以下对结构体类型变量td的定义中,错误的是( )。
A.typcdef struct aa { int n; float m; } AA; AA td;
B.struct aa {int n; float m; } struct aa td;
C.struct {int n; float m; } aa; struct aa td;
D.struct {int n; float m; }td;
第24题:
可用S定义结构体变量
可用T定义结构体变量
S是struct类型的变量
T是struct S类型的变量