首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列结构体的定义语句中错误的是( )。
下列结构体的定义语句中错误的是( )。
admin
2019-04-24
28
问题
下列结构体的定义语句中错误的是( )。
选项
A、gtruet ord{int x;int y;int z;}struct ord a;
B、struet ord{int x;int y;int z;};struet ord a;
C、struct ord{int x;int y;int z;}a;
D、struet{int x;int y;int z;}a;
答案
A
解析
A选项错误,不能在定义结构体的同时,又用结构体类型名定义变量,应该写成B选项或者D选项的格式。
转载请注明原文地址:https://kaotiyun.com/show/thRp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
以下程序的运行结果是intk=0;voidfun(intm){m+=k;k+=m;printf("m=%dk=%d",m,k++);}main(){inti=4;fun(i++);printf("i=%d
下列叙述中,不属于软件需求规格说明书的作用的是
下列程序段是从键盘输入的字符中统计小写字母的个数,用换行符结束循环。请填空。intn=0,c;c=getchar();while(c!=’\n’){if(______)n++;}
若有以下定义语句,则不移动指针p,并且通过指针p引用值为98的数组元素的表达式是【】。intw[10]={23,54,10,33,47,98,72,80,61},*p=w;
以下程序的运行结果为______。main(){inti,f1,f2;f1=f2=1;for(i=0;i<4;i++){printf("%d%d",f1,f2);f1+=f2;f2+=f1;}}
在循环双链表的p结点之后插入s结点的操作是______。
以下程序的输出结果是______。main(){intm=5;if(m++>5)printf("%d\n",m);elseprintf("%d\n",m--);}
下列程序的运行结果是#include"stdio.h"main(){intx=-9,y=5,z=8;if(x<y)if(y<0)z=0;elsez+=1;printf("%d\n",z);}
将E-R图转换为关系模式时,E-R图中的实体和联系都可以表示为()。
我们所写的每条C语句,经过编译最终都将转换成二进制的机器指令。关于转换以下说法错误的是
随机试题
症见素有头痛眩晕,心烦易怒,突然发病,半身不遂,口舌歪斜,舌强语謇或不语,神识欠清或昏迷,肢体强急,偏身麻木,痰多而黏,伴腹胀,便秘,苔黄腻,脉弦滑而数。宜选用
急性缺血性脑血管病的溶栓治疗最好在发病后几小时内进行
A.巴戟天B.延胡索C.天麻D.板蓝根E.茅苍术主产于江苏的是()
某双代号网络计划中,假设计划工期等于计算工期,且工作M的开始节点和完成节点均为关键节点。关于工作M的说法,正确的是()。
(2018年)甲公司下属投资中心本部门税前经营利润15万元,部门平均资产100万元(其中平均非经营资产20万元),部门平均经营负债30万元,该部门要求的税前投资报酬率为10%,该中心的剩余收益()万元。
人们必须重视书本知识,这是因为()。
A.Nokiaposts$1.38bnlossinthefourthqtrB.Goldsurgesto7-weekhighof$1,720C.R-PowerropesinGermanutilit
音色
2006年9月,董某到某银行取款时,意外发现自己的银行卡里多了50万元存款。经查,是银行误将一个与董某同名同姓人的存款存入董某的卡里。此种情形可构成()。
GoldRushinCaliforniaVocabularyandExpressionsnuggetsawmillfinancierJamesMarshallwasthepersonwhofoundthe
最新回复
(
0
)