首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序段 struct st{int x;int*y;}*pt; int a[]={1,2),b[]={3,4}; struct st c[2]={10,a,20.b}; pt=c; 以下选项中表达式的值为11的
有以下程序段 struct st{int x;int*y;}*pt; int a[]={1,2),b[]={3,4}; struct st c[2]={10,a,20.b}; pt=c; 以下选项中表达式的值为11的
admin
2018-01-11
22
问题
有以下程序段
struct st{int x;int*y;}*pt;
int a[]={1,2),b[]={3,4};
struct st c[2]={10,a,20.b};
pt=c;
以下选项中表达式的值为11的是
选项
A、pt->x
B、*pt->y
C、++1)t->x
D、(pt++)->x
答案
C
解析
由题目的已知条件可知,pt指向结构体数组c[2]的第一元素c[0],所以pt->x=10,执行自加运算后为11。
转载请注明原文地址:https://kaotiyun.com/show/IGxp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序:intfun(intx){intp;if(x=0||x==1)return(3);p=x-fun(x-2);returnp;}main(){printf
数据模型分为格式化模型与非格式化模型,层次模型与网状模型属于__________。
栈和队列的共同特点是()。
设在C语言中,float类型数据占4个字节,则double类型数据占()个字节。
下列程序中的数组a包括10个整数元素,分别将前项和后项之和存入数组b,并按每行4个元素输出数组b。请填空。#includemain(){inta[10],b[10],i;for(i=0;i<10;i++)
对两个数组a和b进行下列初始化:charm[]="1234567";charn[]={’1’,’2’,’3’,’4’,’5’,’6’,’7’};则下列叙述正确的是()。
若i和j已定义为int类型,则以下程序段中内循环体总的执行次数是______。for(i=5;i;i--)for(j=0;j<5;j++){...}
下列选项中,不是一个算法的基本特征的是()。
下列对于线性链表的描述中正确的是______。
已知一棵二叉树前序遍历和中序遍历分别为ABDEGCFH和DBGEACHF,则该二叉树的后序遍历为
随机试题
汤剂的优点是
慢性细菌性痢疾是指病程超过
A.医务人员在为病人服务过程中,处事慎重、严谨、周密、准确、无误B.医务人员在履行医德义务中所形成的道德意识C.医务人员心理性上自尊心的表现D.促使医务人员自觉履行医学道德义务E.医务人员在物质生活中和精神生活中,由于感受到或理解到职业目标和理想的
消除应力钢丝,是指钢丝在塑性变形下(轴应变)或通过矫直工序后,在适当温度下进行的短时()得到。
背景:A公司中标一城市主干道拓宽改造工程,道路基层结构为150mm石灰土和400mm水泥稳定碎石,面层为150mm沥青混凝土。总工期为7个月。开工前,项目部做好了施工交通准备工作,以减少施工对群众社会经济生活的影响;并根据有关资料,结合工程特点和自身施
在海运过程中,被保险货物被海盗劫持造成的损失属于()
如有两个以上申报价格符合集合竞价确定成交价原则的,深圳证券交易所取()为成交价。
已知某项目前5年的净现金流量如表7一2所示。注:19%的第1—5年的折现系数分别为0.8403、0.7062、0.5934、0.4987、0.4190。根据以上资料,回答下列问题。为了使负债水平不同和筹资成本不同的项目具有共同的比较基础,评估中需
①秋睡熟了一点便是冬,上帝不愿意把它忽然唤醒,所以做了个整人情,连带冬全部给了济南②上帝把夏天的艺术赐给瑞士,把春天的赐给西湖,秋和冬的全赐给了济南。秋和冬是不好分开的③请你在秋天来④可是,加上济南的秋色,济南便由古朴的画境转入静美的诗境中了⑤那城
Aftercompletingtheirmedical-historyforms,patientsattheHopeClinicforWomeninGraniteCity,111.areaskedanunusualq
最新回复
(
0
)