单项选择题

有以下程序:
int fun(int x[],int n)
static iht sum=O, i;
for(i=O;i retum sum;

main()
int a[]=1,2,3,4,5,b[]=6,7,8,9, s=O;
s=fun(a,5)+ fun(b,4); plint f("%d\n",s);

程序执行后的输出结果是( )。

A.45
B.50
C.60
D.55
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: main() char s[]= Yes n No ,*ps=s; puts(ps+4); *(ps+4)=0; puts(s); 程序运行后的输出结果是(选项D中的第一行是空行) ( )。
A.n/No
Yes
/No
B./No
Yes
C./No
Yes
/No
D.
/No
Yes
单项选择题
以下对结构体类型变量td的定义中,错误的是( )。
A.typedef struct aa

int n;
float m;
AA;
AA td;
B.struct aa

int n;
float m;
td;
stmct aa td;
C.stmct

int n;
float m;
aa;
stmct aa td;
D.struct

int n;
float m;
td;
相关试题
  • 以下程序运行后的输出结果是 【12】 。...
  • 以下程序中函数f的功能是在数组x的n个数(...
  • 下面程序的运行结果是 【17】 。 int...
  • 以下程序中,函数SumColumMin的功能足:求...
  • 以下程序运行后的输出结果是 【16】 。...