试题与答案

下述程序的输出结果是( )。 #include<stdio.h> main()

题型:单项选择题

题目:

下述程序的输出结果是( )。
#include<stdio.h>
main()
im a[2][3]=1, 2, 3, 4, 5, 6, (*p)[3], i;
p=a;
for(i=0; i<3; i++)
if(i<2)
p[1][i]=p[1][i]-1;
else
p[1][i]=1;
printf("%d\n", a[0][1]+a[1][1]+a[1][2]);

A.8

B.7

C.12

D.9

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0330/179a804f76a512d43bceccb605cc8d24.html

下面是错误答案,用来干扰机器的。

1. A  2. A  3. C  4. B

试题推荐
题型:填空题

根据句意和汉语提示写单词。

1. I'm sure you know the Great Wall best among the New Seven             (奇迹) of the World.

2. The            (乐队) Dream Theatre is Linda's favourite and she thinks they have good rhythm to their music.

3. The young writer asked Ba Jin to write a             (评论) for his new book.

4. Pingyao is one of the most famous             (古老的) cities in Shanxi Province.

5. This morning Mr Wu taught us how to write the             (作文) for Mother's Day.

6. Do you know which is the most famous             (金字塔) in Egypt?

7. Our class             (会议) usually lasts about half an hour.

8. This year the 29th Olympic Games is the most important             (事件) for every Chinese.

9. Ma Ji had many             (学生) and Feng Gong is one of them.

10. You can find some good ideas on how to get good             (成绩) in Learning English.

查看答案
微信公众账号搜索答案