首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若有以下结构体定义,则是正确的引用或定义。 Struct example { int x; int y; }V1;
若有以下结构体定义,则是正确的引用或定义。 Struct example { int x; int y; }V1;
admin
2009-01-15
25
问题
若有以下结构体定义,则是正确的引用或定义。 Struct example { int x; int y; }V1;
选项
A、example.x=10
B、example V2.x=10
C、structv2;v2x=10
D、struct examplev2={10};
答案
8
解析
在定义结构体变量时,不能只用结构体名example或关键字struct进行定义,必需要用结构体类型名struct example定义,在引用结构体成员变量时,需要用结构体变量名进行引用,所以选D。
转载请注明原文地址:https://kaotiyun.com/show/02Xp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
(1)在考生目录下有一个工程文件sjt3.vbp。程序的功能是:通过键盘向文本框中输入数字,如果输入的是非数字字符,则提示输入错误,且文本框中不显示输入的字符。单击名称为Command1、标题为“添加”的命令按钮,则将文本框中的数字添加到名称为Combo1
(1)考生文件夹下有一个工程文件sjt3.vbp,其功能是:①单击“读数据”按钮,则将考生文件夹下in3.dat文件中的100个正整数读人数组a中。②单击“统计”按钮,则找出这100个正整数中的所有完全平方数(一个整数若是另一个整数的平方,
设a=2,b=3,c=4,d=5,表达式Nota
一棵二叉树共有25个结点,其中5个是叶子结点,则度为1的结点数为( )。
PrintFormat(1234.56,"###.#")语句的输出结果是( )。
下列关于线性链表的叙述中,正确的是( )。
有三个关系表R、S和T如下,其中三个关系对应的关键字分别为A,B和复合关键字(A,B)。表T的记录项(b,q,4)违反了
下列选项中,不属于数据模型所描述的内容的是()。
以下关于函数过程的叙述中,正确的是( )。
表达式Sin(0)+Abs(-1)+Int(Rnd(0))+Len(Str(3.14))的值是
随机试题
下列属于蝶式套利的有()。Ⅰ.在同一交易所,同时买入10手5月份白糖合约、卖出20手7月份白糖合约、买入10手9月份白糖合约Ⅱ.在同一交易所,同时买入40手5月份大豆合约、卖出80手5月份豆油合约、买入40手5月份豆粕合约Ⅲ.在同
A.近曲小管B.髓袢升支细段C.髓袢升支粗段D.集合管尿浓缩的部位是
患者男性,50岁,嗜酒多年,鼻头及双面颊发红数年,毛孔扩大,渐鼻头肥大,呈结节状,表现凹凸不平,舌暗红苔白腻,脉沉缓。为
医疗费用控制针对医疗服务机构监督常用的方法不包括
某市政工程公司中标承建地铁区间隧道工程标段,隧道断面为马蹄形,由拱顶、直边墙和底板仰拱组成,钢筋混凝土结构,采用喷锚暗挖法施工。工程施工项目部进场后,对沿线地上、地下构筑物及施工环境进行调研后,确定了三个一级风险源:①垂直穿越主干道;②斜穿砖混结构办公楼
葵丘之盟(厦门大学2002年专门史中国通史真题;四川大学2013年中国通史真题)
古希腊文明发源于()。
某西方国家高等院校的学费急剧上涨,其增长率几乎达到通货膨胀率的两倍。1980—1995年中等家庭的收入只提高了82%,而公立大学的学费的涨幅比家庭收入的涨幅几乎大了3倍,私立院校的学费在家庭收入中所占的比例几乎是1980年的2倍。高等教育的费用已经令中产阶
Economics,asweknowit,isthesocialscienceconcernedwiththeproduction,distribution,exchange,andconsumptionofgoods
PlagiarismLinesBlurforStudentsinDigitalAgeAtRhodeIslandCollege,afreshmancopiedandpastedfromaWebsite’sfr
最新回复
(
0
)