设有以下函数: f(int a){int b=0;static int c=3;
2024-02-10 105次 计算机二级 反馈错误 加入收藏 正确率 : 100%
题目内容:
[单选题]设有以下函数: f(int a) { int b=0; static int c=3; b++; c++; return(a+b+c); } 如果在下面的程序中调用该函数,则输出结果是______。 main() { int a=2, i; for(i=0; i<3; i++)printf("% d/n", f(a)); }
A.7 8 9
B.7 9 11
C.7 10 13
D.7 7 7
本题链接: