首页
普通专升本
成人高考
学位英语
在线刷题
最近学习
最近学习课程
最强大脑 · 3天挑战极限记...
副标题副标题副标题副
最强大脑 · 3天挑战极限记...
副标题副标题副标题副
您现在位置:
模拟考场
>
湖北自学考试
>
公共课
>
计算机软件基础
>
浏览试题
[单选题]
下列程序的输出结果是() main() {int a[3][3]={{1,2},{3,4},{5,6}},i,j,s=0; for(i=1;i<3;i++) for(j=0;j<=i;j++) s+=a[i][j]; Printf(“%d\n”,s); }
A
18
B
19
C
20
D
21
收藏
查看答案
参考答案
试题答案:
A
答案解释:
题中的外循环只执行了2次。 第1次:a[1][0]=3,a[1][1]=4,所以s=7; . 第2次:a[2][0]=5,a[2][1]=6.a[2][2]=0,所以s=7+5+6+0=18。
相关题目
下列程序的运行结果是( ) #include main() {char b="ABCDEFGH"; printf("%c",b); }
16.下列C语言程序运行时输入2473↙,则输出结果是( ) (注:↙为回车符号) #include main() {int cx; while ((cx=get))!=\n) {switch(cx-2) {case 0: case 1:putcx+4); case 2:putcx+4); break; case
已知int a= 。
下列关于栈的说法中正确的是()
属于c语言基本数据类型的是 ( )
程序的三种基本控制结构是 ()
若有以下结构体,则正确的定义或引用的是() struct Test {int x; int y; )vl;
以下运算符使用错误的是( )
使用结构建立链表时,每个结点是一个结构类型的数据,要动态分配结点的空间应该使用函数( )
设有一个10×10的对称矩阵A,采用下三角压缩存储方式,以行序为主,A的地址是 。
热门试题
1.
中华民国临时政府正式成立是在 ( )
2.
28.简述MRPII管理模式的特点。
3.
I discovered the worth of super-slow(超慢速) reading years ago. Formerly, if I had been really interested in a book, I would race from page to page,eager to know what came next. Now, I decided,I had to become a miser(吝啬者)with words stretch every sentence like a poor man spending his last dollar. I had started with the practical object of making my book last. But by the end of the second week I began to realize now much I was getting from super-slow reading itself. Sometimes just a particular phrase caught my attention, sometimes a sentence. I would read it slowly, analyze it, read it again, then sit for twenty minutes thinking about it before moving on. I was like a pianist studying a piece of music, phrase by phrase, rehearsing(排练) it, trying to discover recreate exactly what the composer was trying to convey.
4.
40.对图片进行剪裁的目的是
5.
23.下列选项中,输入-处理-输出图(IPO图)需要包括的信息是
热门试卷
成人高考专升本《政治》模拟试卷
去做题
已有3418做题
2020年湖北成人高考专升本政治模拟试题三
去做题
已有2214做题
成人高考专升本政治考试模拟试题及答案(1)
去做题
已有1901做题
湖北成考专升本政治真题(2021年)
去做题
已有1364做题
湖北成考高起点语文真题(2021年)
去做题
已有1221做题