首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是
下面结构体的定义语句中,错误的是
admin
2019-12-17
29
问题
下面结构体的定义语句中,错误的是
选项
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;
答案
B
解析
在选项B)中,由于在定义完结构体后缺少分号“;”,所以这是一条不完整的语句,因而是错误的。
转载请注明原文地址:https://kaotiyun.com/show/SGCp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序#include#defineN2#defineMN+1#defineNUN(M+1)*M/2main(){printf("%d\n",NUN);}程序运行后的输出结果是
若有代数式(其中e仅代表自然对数的底数,不是变量),则以下能够正确表示该代数式的C语言表达式是
以下叙述中正确的是
假定整数数列中的数不重复,并存放在数组中。下列给定程序中函数fun的功能是:删除数列中值为x的元素,变量n中存放数列中元素的个数。请改正程序中的错误,使它能得出正确的结果。注意:不要改动main函数,不得增行或删行,也不得更改程序的结构!试题程序:
下列给定程序中,函数fun的功能是:按以下递归公式求函数的值。例如,当给n输入5时,函数值为18;当给n输入3时,函数值为14。请改正程序中的错误,使它能得出正确的结果。注意:不要改动main函数,不得增行或删行,也不得更改程序的结构!试题程序:
设二叉树的前序序列与中序序列均为ABCDEFGH,则该二叉树的后序序列为
设二叉树共有500个结点,其中叶子结点有250个。则度为2的结点个数是
对如下二叉树进行后序遍历的结果为
C语言程序中,运算对象必须是整型数的运算符是
某循环队列的存储空间为Q(1:m),初始状态为front=rear=m。现经过一系列的入队操作和退队操作后,front=m一1,real=m,则该循环队列中的元素个数为()。
随机试题
蓝田公司2014年12月31日部分总账及其所属的明细账余额如下表所示:要求:根据上述资料计算并填列资产负债表中的空白项目。
A.冠心病B.扩张性心肌病C.肥厚性心肌病D.室壁瘤E.瓣膜性心脏病心室壁收缩增强,室间隔不均匀性增厚,心室腔变形、狭小甚至闭塞
患者,女,45岁。已婚,15年前生育一子后闭经、体力差,每因感染而脱水,血压偏低,需住院输液治疗,有时需要用糖皮质激素方可恢复,查体:神清合作,心肺腹未见异常。问题3:最有效的治疗是
某5岁外来儿童出现了肌张力减弱、肌力下降、腱反射减弱或消失等症状,属于急性弛缓性麻痹病例(AFP),其监测目的不包括()
A、病人角色减退B、病人角色缺如C、病人角色冲突D、病人角色强化E、病人角色异常出现小病大养的情况可能属于
青霉素与以下哪些药物合用可减少青霉素类的肾小管分泌而延长其血浆半衰期()。
为了抑制通货膨胀,国家宏观调控部门可以采取的措施是()。
大众富裕阶层是指个人可投资资产在10万美元(约65万元)至100万美元(约650万元)之间的中产阶级群体,他们中的很大一部分又被通俗地称为“高级白领”。这一阶层投资品种的前三大类分别是银行理财产品、房地产和股票。根据上述定义,下列属于大众富裕阶层的是:
试述苏联教育家马卡连柯的教育思想。
货币均衡的自发实现主要依靠()。
最新回复
(
0
)