首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下程序的输出结果是 #include struct st { int x;int *y;}*p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[
以下程序的输出结果是 #include struct st { int x;int *y;}*p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[
admin
2010-12-10
22
问题
以下程序的输出结果是
#include
struct st
{ int x;int *y;}*p;
int dt[4]={10,20,30,40};
struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],};
main()
{ p=aa;
printf("%d\n",++(p->x));}
选项
A、10
B、11
C、51
D、60
答案
C
解析
考查结构体成员数据的引用方法。通过指针来引用结构体成员的方法是(指针变量)->结构体成员名。
转载请注明原文地址:https://kaotiyun.com/show/WhPp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下列叙述中正确的是()。
以下关于VB文件的叙述中,正确的是
设a、b都是自然数,为求a除以b的余数,某人编写了以下函数:Functionfun(aAsInteger,bAsInteger)Whilea>ba=a—bWendfun=aEndFu
有如下的一个函数过程:Functionfn(ByValnumAsLong)DimvkAsLongk=1:hum=Abs(num)DoWhilenumk=k*(numMod10)num=num\10Loopfn=kEnd
下面描述中不属于数据库系统特点的是
结构化程序的三种基本结构是()。
下面哪个属性肯定不是框架控件的属性()。
软件测试用例包括()。
以下选项中,与k = n + +完全等价的表达式是
在软件测试设计中,软件测试的主要目的是()。
随机试题
下列说法哪一点是错误的
关于使用孕期保健手册的主要目的哪项正确
关于AB型血液正确的是
靶向给药系统是指利用载体将药物通过局部或全身血液循环而选择性地浓聚定位于靶组织、靶器官、靶细胞或细胞内结构的给药系统。()
内听道扩大为一侧内听道增宽超过
津液的输布和排泄障碍主要与哪几个内脏的功能失常有关
B公司是一家制造企业,2014年度财务报表有关数据如下:B公司没有优先股,目。前发行在外的普通股为1000万股。假设B公司的资产全部为经营资产,流动负债全部是经营负债,长期负债全部是金融负债。公司目前已达到稳定增长状态,未来年度将维持2014
EconomicRecoveryontheWayEconomicexpertsarepredictingthatthepoorlyperformingdomesticeconomywillrecoverinthe
(2017年广州)“开车不喝酒,喝酒不开车”是现在道路交通常用的标语。为保障交通安全,我国《刑法》对“酒后驾车”的相关情形也做了规定。在不考虑驾驶人年龄、行为能力等前提下,下列情形与刑法罪名对应关系正确的是()。
发送电子邮件时,邮件服务系统自动添加的邮件信息是()。
最新回复
(
0
)