单选题:有下列程序: #include<stdi0.h>intb=2; intfun(int*k){b=*k+b;return(

  • 题目分类:C++
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
有下列程序:
#include<stdi0.h>
intb=2;
intfun(int*k)
{b=*k+b;return(b);)
voidmain(  )
{inta[10]={1,2,3,4,5,6,7,8},i;
for(i=2;i<4;i++){b=fun(&a[i])+b;printf
("%d",b);}
printf("\n");
}
程序运行后的输出结果是(  )。 A.1012
B.810
C.1028
D.1016

参考答案:
答案解析:

设有定义“chars[8];inti=0;”,下列不能将一行(不超过80个字符)带有空格的字符国正确读入的语句或语句组是

设有定义“chars[8];inti=0;”,下列不能将一行(不超过80个字符)带有空格的字符国正确读入的语句或语句组是(  )。 A.gets(s); B.w

查看答案

Which of the following arguments does the author want to ma

Which of the following arguments does the author want to make?A.Money is all th

查看答案

What does the man ask the woman to do?

What does the man ask the woman to do?A.To park the Car elsewhere. B.To drive al

查看答案

We know from the text that_________.

We know from the text that_________. A.Frank couldn’t decide which Car to buy.

查看答案

Chan wants to open up new businesses abroad.

Chan wants to open up new businesses abroad. A.Right B.Wrong C.Doesn’t Say

查看答案