首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
根据下列的定义,能打印出字母P的语句是( ) struct stu {char name[10]; int age; }; stmct stu s[10]={"John",11, "Paul",12, "Mary"
根据下列的定义,能打印出字母P的语句是( ) struct stu {char name[10]; int age; }; stmct stu s[10]={"John",11, "Paul",12, "Mary"
admin
2010-09-05
19
问题
根据下列的定义,能打印出字母P的语句是( )
struct stu {char name[10];
int age;
};
stmct stu s[10]={"John",11,
"Paul",12,
"Mary",11,
"adam",12
}:
选项
A、printf("%c",s[3].name);
B、printf("%c",s[3].name[1]);
C、printf("%c",s[2].name[11]);
D、printf("%c",s[1].name[0]);
答案
D
解析
本题主要考查按结构数组元素方式引用结构成员。字母P为“Paul”的第一个字母,是结构体s[1]的name成员的第二个元素的值,即s [1].name[0]的值。
转载请注明原文地址:https://kaotiyun.com/show/4eWp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下面叙述不正确的是()。
在关系数据库中,用来表示实体间联系的是
下面叙述中错误的是()。
使用Open语句可以打开或建立文件,并同时指定文件的输入输出方式。下列输入输出方式中错误的是()。
语句PrintSgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是()。
设Label1、Command1、Text1、Check1分别为标签、命令按钮、文本框、复选框的名称,则以下属性设置语句中,运行时不会出错的是
设a=4,b=5,c=6,执行语句Printa
用LineInput语句从顺序文件读出数据时,每次读出一行数据。所谓一行是指遇到()分隔符,即认为一行的结束。
以下于控件数组的叙述中,正确的是()。
下面不能作为结构化方法软件需求分析工具的是
随机试题
患儿,男,6岁。西医确诊为急性肾小球肾炎。病程第9日,症见肢体浮肿,尿少,咳嗽气急,喘息不得平卧,心悸,胸闷,口唇青紫,脉细无力。其证型是( )
决定债券到期收益率的因素主要有()。
Manypeoplewronglybelievethatwhenpeoplereacholdage,theirfamiliesplacetheminnursinghomes.Theyareleftinthe【C1】
10个月男孩,发热、咳嗽、声音嘶哑1d,查体闻及犬吠样咳嗽及喉鸣音,双肺呼吸音清。
下列关于高血压联合用药的原则,正确的是
去甲肾上腺素可被下列哪种酶灭活
下列影响焊接工艺因素中,《承压设备焊接工艺评定》NB/T、47014规定不属于各种焊接方法的重要影响因素有()。
价格垄断行为是指经营者通过相互串通或者滥用市场支配地位,操纵市场调节价,扰乱正常的生产经营秩序,损害其他经营者或者消费者合法权益,或者危害社会公共利益的行为。根据上述定义,下列不属于价格垄断行为的是:
A.颈横动脉、静脉的浅面B.肩胛舌骨肌中间腱以上的颈内静脉周围C.肩胛舌骨肌中间腱以下的颈内静脉周围D.右前斜角肌内侧缘E.二腹肌后腹与面总静脉汇入颈内静脉处颈二腹肌淋巴结位于()。
(1)建立一个查询score_query。查询评委为“歌手编号”是“01002”的歌手所打的分数,结果存入自由表result中,该自由表的字段项包括:“评委姓名”和“分数”,各记录按“分数”升序排列。最后运行该查询。(2)根据上一步操作得到的自由表res
最新回复
(
0
)