首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是( )。
下面结构体的定义语句中,错误的是( )。
admin
2015-07-28
33
问题
下面结构体的定义语句中,错误的是( )。
选项
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)的结构体没有定义完全就用该结构体另外定义变量,用法有误,所以答案选A)。
转载请注明原文地址:https://jikaoti.com/ti/SFn0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下面能正确进行字符串赋值操作的语句是______。
已知字母a的ASCII码为十进制数的97,下面程序的输出结果是______。 main() {charcl,c2; C1=’a’+’5’-’3’; c2=’a’+’6’-’3’; printf("%c,%d\n”,c1,c2); }
下面是有关c语言字符数组的描述,其中错误的是
有以下程序#include#includemain(){charstr[][20]={“Qne*World”,“one*Dream!”},*P=str[1].prinff(“%d,”,strlen(p));printf(“%s\n”,P)
表达式:(int)((double)9/2)-(9)%2.的值是
若有定义:inta[4][10];,则以下选项中对数组元素a[i][i]引用错误的是______。(0<=i<4,0=i<10)
下面关于完全二叉树的叙述中,错误的是______。
以下叙述中正确的是______。
设有定义:inta=2,b=3,c=4;,则下列选项中值为0的表达式是()。
若有说明:int*p1,*p2,n=8,m;下列均是正确赋值语句的选项是()。
随机试题
FiveProblemsFinancialReformDoesn’tFixA)Thelegislationconcerningfinancialreformfocusesonhelpingregulatorsdete
最适合于转移性、复发性嗜铬细胞瘤定位诊断的检查方法是
A.五倍子B.金银花C.黄连D.熊胆E.当归主要成分为胆甾醇的是()
一般将权利凭证交付质押人的担保是()。
背景某施工单位承接了一段长30km的沥青混凝土路面施工改建任务,路面结构为:6cm厚AC一20下面层摊铺、5cm厚AC一16中面层摊铺、4cm厚SBS改性沥青SMA上面层摊铺。其中基层采用厂拌水泥稳定碎石,基层厚40cm,分两层施工。底基层为18
银行申报核销呆账,必须提供的材料有()
下列属于事业单位的资产科目的有()。
阅读下列短文。回答以下问题。目前,医生们已经发现更多证据表明H5N1型禽流感病毒能够迅速变异,使抗禽流感药物“达菲”失效。2005年1月,当一名13岁的越南小女孩因轻微肺炎被送到医院时,人们还庆幸她及时得到了“达菲”的治疗,用药初期,症
InAmsterdam(阿姆斯特丹),thereisanunusualChildrenRestaurant.Itisrun(经营)bychildren.Fromthemanagertothecooks,waiter
In1798thepoliticaleconomistMalthuspredictedthatintimemankindwouldfacestarvation,havingoutgrowntheavailablefood
最新回复
(
0
)