作业帮 > 数学 > 作业

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

来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/05/17 01:06:35
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