柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
下面结构体的定义语句中,错误的是( )。
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;
热度🔥776
参考答案:A
解析:
【解析】A)选项struct ord {int x;int y;int z;} struct ord a;错误,不能在定义结构体的同时,又用结构体类型名定义变量。应该写成B)选项或者D)选项的格式。
复制题目向AI提问
content_copy
content_copy
扫码免费计算机二级刷题
2025年计算机等级考试题库
推荐
有三个关系R、S和T如下: 由关系R和S通过运算得到关系T,则所使用的运算为( )。
对长度为n的线性表排序,在最坏情况下,比较次数不是n(n-1)/2的排序方法是( )。
有以下程序 #include main() { char b,c; int i; b= 'a'; c = 'A'; for (i=0; i<6; i++) { if (i%2) putchar(i+b); else putchar(i+c); } printf("\n"); } 程序运行后的输出结果是
标签
二级C语言
int
struct
ord
定义