阿摩線上測驗
登入
首頁
>
计算机等级考试— 二级—《C语言 》
>
95年 - 2006年4月计算机等级考试— 二级—《C语言 》#13781
> 試題詳解
試題詳解
試卷:
95年 - 2006年4月计算机等级考试— 二级—《C语言 》#13781 |
科目:
计算机等级考试— 二级—《C语言 》
試卷資訊
試卷名稱:
95年 - 2006年4月计算机等级考试— 二级—《C语言 》#13781
年份:
95年
科目:
计算机等级考试— 二级—《C语言 》
40)有以下程序int fun int x[],int n) {static int sum=0,i; for i=0;i sum+=x[i]; return sum;} main ) {int a[]={1,2,3,4,5},b[]={6,7,8,9},s=0;s=fun a,5)+fun b,4); printf “%d ”,s);} 程序执行后的输出结果是
(A)45
(B)50
(C)60
(D)55
正確答案:
登入後查看