首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是( )。
下面结构体的定义语句中,错误的是( )。
admin
2020-05-19
23
问题
下面结构体的定义语句中,错误的是( )。
选项
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://kaotiyun.com/show/BgCp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序:charname[20];intBum;scanf(“name=%sBum=%d”,name,&num);当执行上述程序,并从键盘输入:name=Lilinum=1001后,name的值为(
有以下程序(streat函数用于连接两个字符串):#include#includemain(){chara[20]=“ABCD\0EFG\0”,b[]=“LIK”;strcat(a,b);
若有定义语句doublea,*P=&a;,下列叙述中错误的是()。
有以下程序:#includemain(){inti,j,m=55;for(i=1;i
一个教师可讲授多门课程,一门课程可由多个教师讲授。则实体教师和课程间的联系是()。
规定输入的字符串只包含字母和*号。请编写函数fun,它的功能是:将字符串中的前导*号全部删除,中间和尾部的*号不删除。例如,字符串中的内容为:*******A*BC*DEF*G****,删除后,字符串中的内容应当是:A*BC*DEF*G****。在编写函数
给定程序中,函数fun的功能是将参数给定的字符串、整数、浮点数写到文本文件中,再用字符串方式从此文本文件中逐个读入,并调用库函数atoi和atof将字符串转换成相应的整数、浮点数,然后将其显示在屏幕上。请在程序的下划线处填入正确的内容并把下划线删
给定程序中,函数fun的功能是:有N×N矩阵,根据给定的m(m
设有定义:char*c:,以下选项中能够使字符型指针c正确指向一个字符串的是()。
人员的记录由编号和出生年、月、日组成,N名人员的数据已在主函数中存入结构体数组std中。函数fun的功能是:找出指定出生年份的人员,将其数据放在形参k所指的数组中,由主函数输出,同时由函数值返回满足指定条件的人数。请在程序的下划线处填入正确的内容
随机试题
已知函数f(x)=.试问方程f(x)=x在区间(0,+∞)内有几个实根?
肝棘球蚴病的影像表现错误的是
男性,55岁。急性心肌梗死4周,今晨再发胸痛,持续8小时不缓解,遂来急诊。查体:BP100/60mmHg,心率95次/分,心肺检查无异常,心电图:I、aVL导联ST段弓背向上抬高。血清肌钙蛋白升高。该患者胸痛最可能的原因是
女,55岁。双腕,双手近段指尖关节、掌指关节肿痛3年,晨僵1小时。查体:双腕、双手2~4掌指关节及3~4近端指间关节肿胀,压痛,ANA(-)。患者病变的基本特征是
设f(x)=x2+ax2+bx在x=1处有极小值-2,则必()。
根据1998年11月14日辛央金融工作会议的决定,在()设立中国人民银行总行营业管理部。
Ifyouoftenfeeltiredandthedoctorcan’tfindanythingwrongwithyou,youmaybeinastateofsub-health(亚健康).Subhealthi
下列哪个具体行政行为不在行政复议的范围内?()
规范,是指人们在特定环境下被要求如何行动、如何思维、如何体验的期望,是一种相对固定的行为表现。根据以上的定义,下面哪种行为体现了规范?( )
某二叉树的中序遍历序列为CBADE,后序遍历序列为CBADE,则前序遍历序列为
最新回复
(
0
)