问题
单项选择题
下列结构体的定义语句中,错误的是( )。
A.struct ord {int x;int y;int z;};struct ord a;
B.struct ord {int x;int y;int z;}stmct ord a;
C.stmct ord {int x;int y;int z;}a;
D.struct{int x;int y;int z;}a;
答案
参考答案:B
解析: 结构(联合),定义结束以后一定有一个分号,必不可少。