问题
单项选择题
设有以下说明语句: struct ex {int x;float y;char z;} example;则下面叙述中不正确的是( )。
A.struct是结构体类型的关键字
B.example是结构体类型名
C.x,y,z都是结构体成员名
D.struct ex是结构体类型名
答案
参考答案:B
解析: 本题中,struct ex是结构体类型名,example是结构体变量名。
设有以下说明语句: struct ex {int x;float y;char z;} example;则下面叙述中不正确的是( )。
A.struct是结构体类型的关键字
B.example是结构体类型名
C.x,y,z都是结构体成员名
D.struct ex是结构体类型名
参考答案:B
解析: 本题中,struct ex是结构体类型名,example是结构体变量名。