> 数学 >
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
人气:309 ℃ 时间:2020-04-03 13:43:09
解答
答案为:C
A错:最后应为分号
B错:缺少结构体名
D错:TEST 已经被定义为类型名,不必再加struct
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版