下面结构体的定义语句中,错误的是

admin2019-12-17  29

问题 下面结构体的定义语句中,错误的是

选项 A、struct ord {int x;int y;int z;};struct ord a;
B、struct ord {int x;int y;int z;} struct ord a;
C、struct ord {int x;int y;int z;} a;
D、struct {int x;int y;int z;} a;

答案B

解析 在选项B)中,由于在定义完结构体后缺少分号“;”,所以这是一条不完整的语句,因而是错误的。
转载请注明原文地址:https://kaotiyun.com/show/SGCp777K
0

随机试题
最新回复(0)