首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序 struct S{int a;int b;); main(){ struct S a,*p=&a; a.a=99; pfintf("%d\n",_________);)程序要求输出结构
有以下程序 struct S{int a;int b;); main(){ struct S a,*p=&a; a.a=99; pfintf("%d\n",_________);)程序要求输出结构
admin
2020-11-23
33
问题
有以下程序
struct S{int a;int b;);
main(){
struct S a,*p=&a;
a.a=99;
pfintf("%d\n",_________);)程序要求输出结构体中成员a的数据,以下不能填入横线处的内容是
选项
A、a.a
B、*p.a
C、p->a
D、(*p).a
答案
B
解析
如果p指向结构体,那么下面三种形式都可以访问结构体的成员:结构体变量.成员名、(*p).成员名、p->成员名。
转载请注明原文地址:https://jikaoti.com/ti/bPD0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下面选项中关于位运算的叙述正确的是()。
以下定义语句中正确的是()。
以下叙述中正确的是()。
以下叙述中正确的是()。
与数学表达式x>=y>=z对应的C语言表达式是()。
若有定义语句:intx=10;,则表达式x—=x+x的值为()。
设fp为指向某二进制文件的指针,且已读到此文件末尾,则函数feof(fp)的返回值为()。
以下叙述中正确的是()。
假定输入的字符串中只包含字母和*号。请编写函数fun,它的功能是:除了字符串前导的*号之外,将串中其它“*”号全部删除。在编写函数时,不得使用C语言提供的字符串函数。函数fun中给出的语句仅供参考。例如,字符串中的内容为:****A*BC*
软件按功能可以分为应用软件、系统软件和支撑软件(或工具软件)。下面属于应用软件的是
随机试题
埋地管道DPS涂层底层、面层厚度之比最大为1:3。
患儿,2岁。因着凉后咳嗽流涕,2天后咳嗽加重,日轻夜重,咳时有深吸气时伴鸡鸣声,痉咳后每硼呕吐痰涎,目睛红赤,舌根部有溃疡,舌红苔少,脉滑数。选方为
A、.桃红饮加味B、.炙甘草汤加味C、.独活寄生汤D、.蠲痹汤E、.犀角散加味痹证日久,除见关节肿痛外,兼见气血不足及肝肾亏虚症状,治疗宜选用
堆放的固体废物产生的大气主要污染物是( )。
某项目的施工网络计划(时间单位:周)如下图所示,其中工作A、E、J共用一台施工机械且必须顺序施工,则施工机械闲置的时间是()周。
计算机进行会计业务处理与手工会计业务处理的方法和流程( )。
国际金融市场按经营业务的种类划分,可以分为(),各个市场相互影响。
5,10,5,25,(),85
下列关于数据仓库的叙述中,不正确的是()。
数据库系统的三级模式不包括()。
最新回复
(
0
)