首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设有以下程序段:struct st{int n;struct st *next;};static struct st a[3]={5,&a[1],7,&a[2],9,’\0’),*p;p=&a[0];下面选项中,其值为6的表达式为______。
设有以下程序段:struct st{int n;struct st *next;};static struct st a[3]={5,&a[1],7,&a[2],9,’\0’),*p;p=&a[0];下面选项中,其值为6的表达式为______。
admin
2009-02-15
22
问题
设有以下程序段:struct st{int n;struct st *next;};static struct st a[3]={5,&a[1],7,&a[2],9,’\0’),*p;p=&a[0];下面选项中,其值为6的表达式为______。
选项
A、P++->n
B、p->n++
C、(*p).n++
D、++p->n
答案
8
解析
转载请注明原文地址:https://jikaoti.com/ti/AzK0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
窗体上有一个名称为Commandl的命令按钮,并有如下程序代码:OptionBase1PrivateSubCommand1Click()Dima%(3,3)Fori=1To3Forj=1To3Ifi>1Andj>1The
下列可作为VisualBasic变量名的是
为了在运行时能显示窗体左上角的控制框(即系统菜单),应执行的操作是
在窗体上画一个命令按钮,然后编写如下事件过程:PrivateSubCommandl_Click()aS=InputBox(”请输入一个二进制数”)n=Len(a$)Fori=1TonDec=
下列数组定义中错误的是
为计算an的值,某人编写了函数power如下:PrivateFunctionpower(aAsInteger,nAsInteger)AsLongDimPAsLongP=aFork=1Ton
窗体模块中有如下类型定义:PublicTypeRecnumAsIntegernameAsStringEndType下面关于这一类型定义的叙述中正确的是()。
在具有2n个结点的完全二叉树中,叶子结点个数为()。
某二叉树的前序序列为ABCDEFG,中序序列为DCBAEFG,则该二叉树的深度(根结点在第1层)为()。
随机试题
患者,男性,34岁,右下颌下区无痛性质软肿物发现3个月,表面皮肤正常,口内检查亦未见异常。行下颌下手术时见肿物呈囊性,术中囊壁破裂,流出黏稠而略带黄色蛋清样液体,遂将囊壁及下颌下腺一并摘除,但术后不久囊肿复发。该病最可能的诊断是
以下不属于财务费用的是()。
关于上海证券交易所开放式基金申购、赎回业务,按现行规定,在最低申购金额的基础上,累加申购金额为l00元或其整数倍,但最高不能超过99999900元。
下列哪一项不属于高等教育平等的内涵()。
试分别叙述罗尔中值定理和拉格朗日中值定理。若以S(x)记由(a,f(a)),(b,f(b)),(x,f(x))三点组成的三角形面积,试对S(x)应用罗尔中值定理证明拉格朗日中值定理。
我国幼儿园在每年的()招生。
教师专业发展的途径有()。
主窗体和子窗体的链接字段不一定在主窗体或子窗体中显示,但必须包含在
十进制数121转换成无符号二进制整数是______。
DothefollowingstatementsagreewiththeinformationgiveninReadingpassage1?Inboxes10-13onyouranswersheet,writeTR
最新回复
(
0
)