首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是
下面结构体的定义语句中,错误的是
admin
2016-12-28
30
问题
下面结构体的定义语句中,错误的是
选项
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/puDp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序#includemain(){charp[20]={′a′,′b′,′c′,′d′},q[]="abc",r[]="abcde";strcat(p,r);strcpy(p+strlen(q),q);pri
以下程序的输出结果是#includeinta[3][3]={1,2,3,4,5,6,7,8,9,},*p;main(){p=(int*)malloc(sizeof(int));f(p,a);printf("%d\n",*p);
下面程序段的运行结果是chara[]="lanuage",*p;p=a;while(*p!=′u′){printf("%c",*p-32);p++;}
以下数组定义中错误的是
以下数组定义中错误的是______。
设变量已正确定义,则以下能正确计算f=n!的程序段是______。
定义下列结构体(联合)数组:structSt{charname[15];intage;}a[10]={"ZHAO",14,"WANG",15,"LIU",16,"ZHANG",17};执行语句prin
下列叙述中不正确的是()。
随机试题
创造组织文化的是()
患者赵某,男性,40岁,眩晕而头重如蒙,胸闷恶心,头目胀痛,心烦而悸,口苦,舌苔黄腻,脉弦滑。治疗最佳方剂是:
临床试验和生物等效性试验是新药的直接与药品接触的包装是
病人男性,37岁,因近两周食欲减退,上腹部不适,疲乏无力就诊。体检:肝肋下2cm。有轻度触痛。为明确诊断,首先应检查的项目是
测量学按专业可分为矿山测量、水文测量和()等。
保险产品具有其他投资理财工具不可替代的()。
根据下面材料回答下列问题。截至2010年5月底,北京市朝阳区规模以上文化创意产业单位共有1777家,总资产达到1534.6亿元,同比增长19.6%;1-5月累计实现收入521.6亿元,同比增长20.4%;从业人员平均人数为16.4万人,同比增长0.8%;
某公司将生产转移到劳动力成本较低的发展中国家。但这一行动导致其在母国的一些长期雇员被解雇。请问在什么情况下上述做法在伦理上是可以接受的?
在设置或编辑“关系”时,下列不属于可设置的选项是()。
Whenthebrawlhappened,
最新回复
(
0
)