A: struct REC; {int n;char c;}; REC t1,t2;
B: struct REC { int n; char c;}; struct REC t1,t2;
C: struct REC; {int n=0; char c=’A’;}t1,t2;
D: struct{ int n; char c;}REC; REC t1,t2;
举一反三
- 以下结构体类型说明和变量定义中正确的是( ) A: struct REC; {int n;char c;}; REC t1,t2; B: struct REC { int n; char c;}; struct REC t1,t2; C: struct REC; {int n=0; char c=’A’;}t1,t2; D: struct{ int n; char c;}REC; REC t1,t2;
- 以下结构体类型说明和变量定义中正确的是( )。 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: struct{ int n;char c;}REC t1,t2;
- 下列结构体类型说明和变量定义中正确的是( )。 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;
- 以下结构体类型说明和变量定义中正确的是______。 A: typedef struct B: struct REC; C: int n;char c;REC; int n;char c;; D: REC t1,t2; REC t1,t2; E: typedef struct REC; F: struct G: int n=0;char c='A';t1,t2; int n;char c;REC; H: REC t1,t2;
- 以下结构体类型说明和变量定义中正确的是______。 A: A) typedef struct B: int n;char c;); C: REC t1,t2; D: B) struct REC; E: int n;char c;)REC; F: REC t1,t2; G: C) typedef struct REC; H: int n;char c;REC; I: D) struct J: int n=0;char c='A';t1,t2; K: REC t1,t2;
内容
- 0
以下结构体类型说明和变量定义中正确的是( )。 A: typedef struct B: int n;char c;REC; C: REC t1,t2; D: struet REC; E: int n;char c;; F: REC t1,t2; G: typedef struct REC; H: int n=0;char c='A';t1,t2; I: REC t1,t2; J: struct K: int n;char c;REC;
- 1
以下结构体类型说明和变量定义中正确的是() A: struct REC ;<br/>{<br/>int n; char c; };<br/>REC<br/>t1,t2; B: typedef struct<br/>{<br/>int n; char c; } REC;<br/>REC<br/>t1,t2; C: typedef struct REC;<br/>{<br/>int n=0; char c='A'; } t1,t2; D: struct<br/>{<br/>int n; char c; } REC;<br/>REC<br/>t1,t2;
- 2
以下结构体类型说明和变量定义中正确的是( ) A: tupedef strct{int n;char c;};REC t1,t2; B: tupedef strct{int n;char c;}REC;REC t1,t2; C: strct{int n;char c;}REC;REC t1,t2; D: tupedef strct REC;{int n=0;char c='A';}t1,t2;
- 3
以下结构体类型说明和变量定义中正确的是()。 A: typedefstruct{intn;charc;}REC;RECt1,t2; B: structREC;{intn;charc;};RECt1,t2; C: typedefstructREC:{intn=0;charc='A';}t1,t2;RECt1,t2; D: struct{intn;charc;}REC;
- 4
struct abc {int a,b,c;}; void main(){ struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=s[0].a+s[1].b; printf("%d\n",t); }