首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是( )。
下面结构体的定义语句中,错误的是( )。
admin
2020-06-16
22
问题
下面结构体的定义语句中,错误的是( )。
选项
A、struct ord{intx;int y;int z;}struct ord a;
B、struct ord{intx;int y;int z;};struct ord a;
C、struct ord{intx;int y;int z;}a;
D、struct int x;int y;int z;}a;
答案
A
解析
A选项struct ord{int x;int y;int z;}struct ord a;错误,不能在定义结构体的同时,又用结构体类型名定义变量。应该写成B选项或者D选项的格式。
转载请注明原文地址:https://kaotiyun.com/show/rs3p777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
表达式(int)((double)9/2)-9%2的值是()。
以下定义语句中正确的是()。
以下选项中能表示合法常量的是()。
以下选项中,能够正确利用随机函数rand(),产生一个英文字母的表达式是()。
以下选项中正确的语句组是()。
以下选项中正确的语句组是()。
在数据流图中,带有箭头的线段表示的是()。
将实体-联系模型转换为关系模型时,实体之间多对多联系在关系模型中的实现方式是
对象实现了数据和操作(方法)的结合,其实现的机制是
下列数据流图(DFD)构造规则中正确的是()。
随机试题
就这个方法本身而言,它值得一试。
下列关于吸附法的叙述,说法错误的是()。
风险识别工作不包括()。
甲企业(增值税一般纳税人)为某市一家酒厂,生产各种酒类产品。2014年2月,甲企业发生下列经营业务:(1)向乙企业销售白酒80吨,取得不含税销售收入400万元,另单独收取包装费37万元。向个人零售白酒5吨,取得销售额11.7万元。(2)
教师的“楷模"“榜样”“引路人”的角色,都充分说明了教师的劳动具有()
近年来,国家财政把支持解决“三农”问题放在财政工作的首要位置,从()城乡发展的战略高度出发,不断加大投入力度,目前已经初步()财政支持“三农”资金稳定增长机制。
2015年全年全国粮食总产量62143万吨,增长2.4%。谷物产量57225万吨,比上年增长2.7%。棉花产量560.5万吨,比上年下降9.3%。全年猪牛羊禽肉产量8454万吨,比上年下降1.0%,其中猪肉产量5487万吨,下降3.3%,而上年同期为增长3
火:热情:态度
农业示范基地
若f(x)=在x=0处连续,则a=______.
最新回复
(
0
)