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

admin2020-05-19  37

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

选项 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/z8Cp777K
0

相关试题推荐
最新回复(0)