首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是
下面结构体的定义语句中,错误的是
admin
2018-10-16
22
问题
下面结构体的定义语句中,错误的是
选项
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/buxp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
定义结构体数组:structstu{intnum;charname[20];}x[5]={1,"LI",2,"ZHAO",3,"WANG",4,"ZHANG",5,"LIU"};for(i=1;i<5;i++)
有以下函数定义:voidfun(intn,doublex){......}若以下选项中的变量都已正确定义并赋值,则对函数fun正确调用语句是______。
有以下程序段:inta[l0]={1,2,3,4,5,6,7,8,9,10},*p=&a[3],b;b=p[5];b中的值是【】。
有以下程序: int f(int n) { if(n ==1)return 1; else return f(n-1)+1; } main( ) { int i,j=0; for(i=1;i
表达式’5’-’1’的值是()。
一棵二叉树共有47个结点,其巾有23个度为2的结点。假设根结点在第1层,则该二叉树的深度为_________。
在C语言中,while和do…while循环的主要区别是()。
以下4个选项中,不能看成一条语句的是
下列关于线性表的叙述中,不正确的是()。
以下对联合类型叙述正确的是()。
随机试题
______是指由个体、家庭和其他社群单位所占据的、应积极保卫不让同种其他成员侵入的空间。
Thefifthgenerationcomputers,withartificialintelligence,______andperfectednow.
A.狭窄性腱鞘炎B.类风湿性关节炎C.髌骨软化症D.腰椎间盘突出症男,26岁,腰腿痛1年,查体:脊柱侧凸畸形,直腿抬高试验及加强试验阳性,左小腿外侧感觉减弱,诊断是
下列关于乳牙牙髓病的治疗的描述,正确的是
“十一五”期间,强化共享机制,建设科技基础与条件平台的发展思路,以()为主线。
设Q为销售量,P为价格,当∑Q0P0=120万元,∑Q1P1=165万元,∑Q1P0=135万元,∑Q0P1=140万元时,拉氏价格指数是()。
下面关于充分就业的说法,正确的是()。
购进中轻型商用客车整车改装生产的汽车,不征收消费税。()(2015年)
(1)NotfaroffthePacificcoastintheCostaRicanjungle,acommunityhastakentothetreestocraftanew,sustainablelife
A、Becauseshehasgotanappointment.B、Becauseshedoesn’twantto.C、Becauseshehastowork.D、Becauseshewantstoeatina
最新回复
(
0
)