题库
单选题

阅读下面程序,该程序运行后的输出结果是(   )。
程序:

#include<stdio.h>
int a;
main()
{

    int a=0;
    printf ("%d\n",f(5));
    printf ("%d\n",f(10));
}
int f(int n)

    static int a=0;
    int b=0;
    a+=n;
    b+=a;
return b;
}

问题1选项
A.5, 15
B.5, 10
C.0,0
D.0, 10
参考答案: 查看答案 查看解析 APP刷题
相关知识点试题
相关试卷
咨询
查看视频解析
咨询客服
咨询客服