首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序执行后的输出结果是 main() { int a[3][3], *p,i; p=&a[0][0]; for(i=1; i
下列程序执行后的输出结果是 main() { int a[3][3], *p,i; p=&a[0][0]; for(i=1; i
admin
2013-06-11
31
问题
下列程序执行后的输出结果是
main()
{ int a[3][3], *p,i;
p=&a[0][0];
for(i=1; i<9; i++)p
=i+1;
printf("%d\n",a[1][2];)
选项
A、3
B、6
C、9
D、随机数
答案
B
解析
本题中,a[1][2]是二维数组中的第6个元素,对应for循环中i的值为5,p[5]=5+1。
转载请注明原文地址:https://kaotiyun.com/show/1yJp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
以下程序运行后;输出结果是______。main(){char*d[]={"ab","cde"};printf("%x",d[1]);}
字符(char)型数据在微机内存中的存储形式是()
下面的程序能求a:ab.c文件中最长行和它的位置。 #include<stdio.h> main() { intlin,i,j=0,k=0; charc; FILE*fp; fp=(【】("a:ab.c",
下面的程序执行后,文件test.txt中的内容是() #include<stdio.h> voidfun(char*<fname,char*st) {FILE*myf;inti; myf=fopen(fname,"w");
十进制数1385转换成十六进制数为()
以下程序的输出结果是______。#include<stdio.h>main(){doublea=1234.56789;printf("%8.4f,%8.2f\n",a,a);}
在树形结构中,树根结点没有______。
Jackson结构化程序设计方法是英国的M.Jackson提出的,它是一种面向______的设计方法。
若某链表最常用的操作是在最后一个结点之后插入一个结点和删除最后一个结点,则采用______存储方式最节省时间。
设有条件表达式:(EXP)?i++:j-- ,则以下表达式中与(E)(P)完全等价的是
随机试题
浮动汇率制度有什么优点?
互联网发展的基础框架是______的协议簇。
患者,女,62岁。体重45kg。主诉:“间断上腹部隐痛伴食欲下降2个月,症状加重伴恶心呕吐4日”;胃镜发现胃窦部占位,直径5cm。查体:眼窝深陷,皮肤干燥,肌腱反射减弱;血电解质检查显示血清钠118mmol/L。为计算该患者需要补充的钠盐量,应采用的计
证券投资基金在投资组合管理过程中对所投资证券进行的深入研究与分析能起到的作用是()。
2011年12月,甲市乙县国税局对锦绣服装公司进行税务检查时发现,该公司一笔账务处理异常。乙县国税局认为,该公司购进的某批布料用于非应税项目,其进项税额276000元不应抵扣。乙县国税局决定:依法追缴该公司少缴的增值税税款,并加收相应的滞纳金。2012年2
已知命题P:函数f(χ)=(a2-3a-3)χ是增函数.若为真命题,求实数a的取值范围.
某市境内国道、公路、城际快速通道、运煤专线等交通干线纵横交叉,近期致人死亡交通事故频发。为深入剖析此类事故高发的原因,寻找有针对性的治理对策,市公安局汇总了2016~2017年该类警情数据,制作了如下的分析报告。该报告包括图1:某市致人死亡交通事故发案路段
设a>e,0<x<y<,求证ay-ax>(cosx-cosy)axlna.
Windows98操作系统中使用______来存放系统的所有配置数据,包括专用于该计算机的配置数据和用户自行设置系统的设置数据。
WhendidthewomangototheSummerPalace?
最新回复
(
0
)