首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若有以下程序段: structst {intn; int*m: ); inta=2,b=3,c=5; structsts[3]=({101,&a),{102,&c},{103,&b}}; main( ) {structst*p; p=s; } 则以下
若有以下程序段: structst {intn; int*m: ); inta=2,b=3,c=5; structsts[3]=({101,&a),{102,&c},{103,&b}}; main( ) {structst*p; p=s; } 则以下
admin
2021-06-15
23
问题
若有以下程序段:
structst
{intn;
int*m:
);
inta=2,b=3,c=5;
structsts[3]=({101,&a),{102,&c},{103,&b}};
main( )
{structst*p;
p=s;
}
则以下表达式中值为5的是( )。
选项
A、(*p).m
B、*(p+1)->m
C、*(p++)->n
D、(p++).(*m)
答案
D
解析
&是取地址运算符,y=&a是将a的地址赋给y,而a的地址没有发生变化,因此y的值为E2000。
转载请注明原文地址:https://jikaoti.com/ti/DEz0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
由N个有序整数组成的数列已放在一维数组中,给定程序MODI1.C中函数fun的功能是:利用折半查找算法查找整数m在数组中的位置。若找到,返回其下标值;反之,返回-1。折半查找的基本算法是:每次查找前先确定数组中待查的范围:low和high(low<hig
学生的记录由学号和成绩组成,N名学生的数据已在主函数中放入结构体数组S中,请编写函数fun,它的功能是:把低于平均分的学生数据放在b所指的数组中,低于平均分的学生人数通过形参n传回,平均分通过函数值返回。注意:部分源程序在文件PROGl.C中。请勿改动
设a和b均为int型变量,且a=6,b=11,则能使值为3的表达式是()。
有以下程序intadd(inta,intb)main(){return(a+b);}{intk,(*f)(),a=5,b=10;f=add;
下面属于白盒测试方法的是
结构化程序设计中,下面对goto语句使用描述正确的是
“商品”与“顾客”两个实体集之间的联系一般是
数据库应用系统中的核心问题是
若实体A和B是一对多的联系,实体B和C是一对一的联系,则实体A和C的联系是
随机试题
我国现存最大的类书是()。
Formostofhumanhistoryrichpeoplehadthemostleisure.Ontheotherhand,thepoorhavetypicallyworkedpersistently.Hans
真菌的繁殖方式,不包括
男性,66岁,反复咳嗽、咳痰30余年,进行性呼吸困难10余年,反复双下肢水肿2年。因咳嗽、咳痰加重3天人院。查体:口唇发绀,颈静脉怒张,球结膜充血水肿,桶状胸,双肺叩诊呈过清音,呼吸30次/分,双下肺可闻及细湿哕音,双下肢呈可凹性水肿。病理反射未引出。X线
支气管哮喘急性发作伴窦性心动过速,哪项治疗不正确
感染性肉芽肿的特征性细胞成分是
以下检测方法中,()不能用于混凝土强度的检测。
工程监理规划是工程监理单位根据委托工程监理合同制定的。指导监理组织全面开展监理工作的纲领性文件,由()主持编制。
外国人需要延长签证停留期限的,应当在签证注明的停留期限届满()前向停留地县级以上地方人民政府公安机关出入境管理机构申请。
Theuseofdeferential(敬重的)languageissymbolicoftheConfucianidealofthewoman,whichdominatesconservativegendernorms
最新回复
(
0
)