首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有下列程序段: 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
2010-09-05
29
问题
有下列程序段: 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- >y
B、pt- >x
C、+ +pt- >x
D、(pt+ +)->x
答案
4
解析
由题目的已知条件可知,pt指向结构体数组c[2]的第一元素c[0],所以pt->x=10,执行自加运算后为11。
转载请注明原文地址:https://kaotiyun.com/show/xrWp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
以下叙述错误的是()o
下面不属于软件需求分析阶段主要工作的是
用语句Open"C:\teac.txt"ForInputAs#1打开文件后,就可以编程序
设a=10,b=4,c=5,d=7,表达式a>bAndNotc
支持子程序调用的数据结构是()。
下列数据结构中,能够按照"先进后出"原则存取数据的是( )。
以下选项中不能作为合法常量的是()。
以下选项中,合法的一组C语言数值常量是()。
队列是限定在表的一端进行插入和在另一端进行删除操作的线性表。允许删除的一端称作()。
没栈的存储空问为S(1:40),初始状态为bottom=0,top=0。现经过一系列入栈与出栈运算后,top=20,则当前栈中有__________个元素。
随机试题
A、Haveadoctortreatthefracture.B、Haveadoctorplayaroundwith.C、Seeadoctorandhaveeyesexamined.D、Haveadoctorrea
A.201B.30C.100D.39.5E.40瑞典Elektaγ-刀装置使用______个60钴源
国内咯血的最常见病因是
足三阴经从起始部至内踝上8寸段的分布是()
财政分配的目的首先是(),同时也包括执行某些社会职能的需要,可统称为社会公共需要。
AlthoughJackisanEnglish,hecanspeak______fluently.
某市级人大代表在选举省级人大代表时,应选代表10人。根据我国选举法的规定,正式候选人人数可以为()
为计算1+2+22+23+24+…+210的值,并把结果显示在文本框Text1中,若编写如下事件过程:PrivateSubCommand1Click() Dima&,s&,k& s=1 a=2 Fork=2To10
数据库系统的三级模式分别【】模式、内部级模式与外部级模式。
DogsMakeEmployeesMoreProductiveAtWorkLeibLurieneverintendedforhiscompany,messagedeliveryserviceOneCallNow
最新回复
(
0
)