首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是( )。
下面结构体的定义语句中,错误的是( )。
admin
2020-11-27
19
问题
下面结构体的定义语句中,错误的是( )。
选项
A、struct ord{int x;int y;int z;);structord a;
B、struct ord{int x;int y;int z;)structord a;
C、struct ord{int x;int y;int z;}a;
D、struct{int x;int y;int z;}a;
答案
B
解析
C语言中结构体变量的定义有3种方法:①定义结构体类型的同时定义结构体变量,如C项;②使用无名结构体类型定义结构体变量,如D项;③先定义结构体类型,后定义结构体变量,如A项。
转载请注明原文地址:https://kaotiyun.com/show/Sa3p777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下定义:inta;longb;doublex,y;则以下选项中正确的表达式是
若已建立以下链表结构,指针p、s分别指向如图所示结点则不能将s所指节点插入到链表末尾的语句组是
一间宿舍可住多个学生,则实体宿舍和学生之间的联系是()。
下面选项中关于编译预处理的叙述正确的是
若有以下定义和语句chars1[10]="abcd!",*s2="\n123\\";printf("%d%d\n",strlen(s1),strlen(s2));则输出结果是
在满足实体完整性约束的条件下
对长度为n的线性表作快速排序,在最坏情况下,比较次数为()。
在具有2n个结点的完全二叉树中,叶子结点个数为()。
在结构化方法中,用数据流程图(DFD)作为描述工具的软件开发阶段是()。
没数据元素的集合D={1,2,3,4,5},则满足下列关系R的数据结构中为线性结构的是()。
随机试题
简述谈判的方法及有效谈判的原则。
男性,44岁,有咳嗽,咳痰史5年,伴喘息,入院前3天因受寒咳嗽,喘加重,咳黄痰入院,入院时查体,桶状胸,叩诊过清音,肺肝境界右锁中线第7肋间,双肺干、湿啰音及散在哮鸣音,肺功能:FEV1/FVC为56%,MVV60%,VC降低,RV/TLC为43%。住院第
如下图所示,半径为R的圆盘以匀角速度ω沿水平滚动而无滑动,AB杆的A端与圆盘边缘铰接,其B端在水平面上滑动,在图示位置时,AB杆B端的加速度aB大小为()。
下列关于会计循环的表述,正确的有()。
阅读下来材料,按要求完成任务。材料一:《普通高中化学课程标准(实验)》内容标准:认识化石燃料综合利用的意义,了解甲烷、乙烯、苯等的主要性质,认识乙烯、氯乙烯、苯的衍生物等在化工生产中的重要作用。探究建议:实验探究乙烯、乙醇、乙酸的主要化学性质。
让你组织一个大型征文活动,但是大家积极性不高。你将如何准备?
新中国成立以来,在党中央、中央军委领导下,国防建设取得了很大成就,逐步建立起了有中国特色的()。
下列内容不属于书院产生原因的是()
学习动机
Wheredoestheconversationprobablytakeplace?
最新回复
(
0
)