首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面结构体的定义语句中,错误的是( )。
下面结构体的定义语句中,错误的是( )。
admin
2020-10-26
29
问题
下面结构体的定义语句中,错误的是( )。
选项
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/333p777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
若有定义:doublex;,则表达式:x=0,x+10,x++的值是()。
以下叙述中正确的是()。
如图所示:带有头结点的单向链表head,其三个数据结点A、B、C的连接关系见图。结点类型的定义为:structlink{doubledt;struetlink,*next;};若指针p指向A结点,在不改变P指向的前提下,以下选项中不能
以下选项中叙述错误的是()。
下面说法正确的是()。
关于函数返回值,以下叙述正确的是()。
有两个关系R,S如下:由关系R通过运算得到关系S,则所使用的运算为()。
以下选项中,能用作用户标识符的是()。
设有关系表学生S(学号,姓名,性别,年龄,身份证号),每个学生学号唯一。除属性学号外,也可以作为键的是
C语言中的标识符分为关键字、预定义标识符和用户标识符,以下叙述中正确的是()。
随机试题
铲斗挖泥船应根据不同土质选用不同铲斗,可塑黏土宜配备()。
Herearesomesuggestionsthatprovehelpfulforthosewhoarepreparingforajobinterview.Insomeway,a(n)【B1】______interv
患者,18岁。发热起病3天后下降,伴恶心、呕吐、尿色深如豆油样,病程第8天出现嗜睡,继之神志不清,巩膜皮肤深度黄疸,肝界缩小。诊断应考虑
女婴,胎龄36周。出生时体重2000g,体温36.4℃,脉搏130次/分,呼吸45次/分,心、肺无异常,吸吮力弱。该患儿是
临床上最简便的用于确诊疟疾的实验室检查方法是
下列关于正态分布特点的描述,错误的是
拔牙术后,牙槽窝内血块开始机化的时间是拔牙后A.30分钟B.2小时C.24小时D.3~4天E.1个月
永续年金是一组在无限期内金额()、方向()、时间间隔()的现金流。
关于陕西的饮食文化,下列说法正确的是:
下列中央银行的业务中,属于对政府提供的业务是()。
最新回复
(
0
)