27.若有结构类型定义"typedef struct test{int x,y[2];}TEST;",则以下声明中正确的是 _________ 27.若有结构类型定义"typedef struct test{int x,y[2];}TEST;",则以下声明中正确的是_________ .A.struct test x:B.st

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/05 12:54:16

27.若有结构类型定义"typedef struct test{int x,y[2];}TEST;",则以下声明中正确的是 _________
27.若有结构类型定义"typedef struct test{int x,y[2];}TEST;",则以下声明中正确的是
_________ .
A.struct test x:B.struct x; C.test x;D.struct TEST x;
为什么A?不是D

答案为:C
A错:最后应为分号
B错:缺少结构体名
D错:TEST 已经被定义为类型名,不必再加struct