首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是( )。
下面结构体的定义语句中,错误的是( )。
admin
2020-05-19
27
问题
下面结构体的定义语句中,错误的是( )。
选项
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;
答案
A
解析
分号代表该结构体定义语句的结束,选项A的结构体没有定义完全就用该结构体另外定义变量,用法有误,所以答案选A。
转载请注明原文地址:https://jikaoti.com/ti/X2G0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有定义语句:inta;longb;doublex,y;,则以下选项中正确的表达式是()。
若变量已正确定义,在if(w)prinff(“%d\n”,k);中,以下不可替代w的是()。
支持子程序调用的数据结构是()。
下列关于循环队列的叙述中正确的是()。
以下选项中,不合法的C语言用户标识符是()。
规定输入的字符串只包含字母和*号。请编写函数fun,它的功能是:将字符串中的前导*号全部删除,中间和尾部的*号不删除。例如,字符串中的内容为:*******A*BC*DEF*G****,删除后,字符串中的内容应当是:A*BC*DEF*G****。在编写函数
给定程序中,函数fun的功能是:有N×N矩阵,根据给定的m(m
若己定义的函数有返回值,则以下关于该函数调用的叙述中错误的是()。
在关系数据库中,用来表示实体间联系的是
随机试题
斜齿轮的法向指的是与斜齿________的方向。
Normallyastudentmustattendacertainnumberofcoursesinordertograduate,andeachcoursewhichheattendsgiveshimacr
骨折后期并发关节僵硬的主要原因是
患者,男,行胃大部切除术后5h,患者突然出现上腹部剧烈疼痛,伴有强烈的腹膜刺激征,首先考虑是()
乌日,男,蒙古族,56岁,原任内蒙古自治区某研究所所长。2005年,乌日多次利用职务之便,将掌握的国家秘密文件非法倒卖给境外组织,情节较轻。下列关于办理本案的司法机关,说法正确的有哪些?()
陆上消防站布置在辖区适中位置便于车辆迅速出动的主、次干路临街地段,距道路交叉口不宜小于()m。
一般进出口货物的特征是;货物进出境时缴纳进出口税费、提交相关的许可证件、合同核销即办结海关手续。
说话不仅是一种生理功能,更是一种能力。会说话的人,纵然__________,滔滔不绝,听者也不以为苦;纵然___________,一字千金,也能绕梁三日。成功人士大多是成功的说话者,毫不夸张地说,其成功至少有一半是用舌头_________的。依次填入画横线
我国奴隶社会确立和发展的时期是:
关系操作的对象和操作的结果都是
最新回复
(
0
)