试题题干
设struct ex
{ int x; float y; char z; } example;
则下列叙述不正确的是( )
参考答案
正确答案:
试题解析
定义结构体类型变量的一般格式如下:
struct[结构体类型名]
……
}结构体类型变量表;
example是结构体变量名,不是结构体类型名。故B错误。
设struct ex
{ int x; float y; char z; } example;
则下列叙述不正确的是( )
定义结构体类型变量的一般格式如下:
struct[结构体类型名]
……
}结构体类型变量表;
example是结构体变量名,不是结构体类型名。故B错误。