首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是( )。
下面结构体的定义语句中,错误的是( )。
admin
2019-07-14
24
问题
下面结构体的定义语句中,错误的是( )。
选项
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)选项struct ord {int x;int y;int z;} struct ord a;错误,不能在定义结构体的同时,又用结构体类型名定义变量。应该写成B)选项或者D)选项的格式。
转载请注明原文地址:https://kaotiyun.com/show/dARp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序#includemain(){FILE*fp;inta[10]={1,2,3,0,0},i;fp=fopen("d2.dat","wb");fwrite(a,sizeof(int),5,fp);fwrite(a
有以下程序#includemain(){FILE*fp;inta[10]={1,2,3},i,n;fp=fopen("d1.dat","w");for(i=0;i
以下定义语句中正确的是()。
下列定义数组的语句中,正确的是()。
下面结构体的定义语句中,错误的是()。
在数据库设计中,将E-R图转换成关系数据模型的过程属于( )。
负责数据库中查询操作的数据库语言是()。
下面描述中不属于数据库系统特点的是
软件调试的目的是
下面不属于软件测试实施步骤的是
随机试题
甲、乙、丙、丁四个队共同植树造林,甲队造林的亩数是另外三个队造林总亩数的,乙队造林的亩数是另外三个队造林总亩数的,丙队造林的亩数是另外三个队造林总亩数的一半。已知丁队共造林3900亩,问甲队共造林多少亩?
女性,28岁,纳差、呕吐3天,既往糖尿病史1年;体检:T36.2℃,呼吸深大有异味。血糖22mmol/L,尿糖(++++),酮体(+++)。最可能的诊断为
患者因胸骨疼痛,淋巴结肿大就诊。外周血检查发现白细胞:14×109/L,幼稚细胞占45%,红细胞:2.9×1012/L,血红蛋白:90g/L,血小板:78×109/L。骨髓涂片示骨髓细胞增生极度活跃,原始细胞占64%,这些细胞POX呈阳性,AS-DNCE呈
男性,45岁,呕吐腹泻2天,意识模糊、烦躁不安半天急诊入院。查体:BP110/70mmHg,神志恍惚,巩膜中度感染,颈部可见数枚蜘蛛痣,心肺未见异常。腹软,肝肋下未触及,脾肋下3cm。双上肢散在出血点,Hb90g/L。WBC:3.22×109/L,血糖
A.国家卫生和计划生育委员会B.人力资源和社会保障部C.国家发展和改革委员会D.商务部制定并发布《国家基本医疗保险、工伤保险和生育保险药品目录》的部门是
《海洋环境保护法》适用范围包括
古代汉语单音节词占优势,现代汉语的双音节词则要丰富得多。根据对使用频率最高的8000个现代汉语常用词的统计,其中双音节词占71%;单音节词占26%,三个音节以上的词占3%。不过,就日常口语而言,单音节词的使用频率仍然大大高于双音节词,前者的使用频率为61%
已知R3的两个基为求由基a1,a2,a3到基b1,b2,b3的过渡矩阵P.
Basicprofilingisawidelyusedinvestigatingtool,buttherearecontradictoryattitudestowardsit.Probablecauseincludes
Anewstudyshowsthatstudentslearnmuchbetterthroughanactive,iterative(迭代的)processthatinvolvesworkingthroughtheir
最新回复
(
0
)