A-A+
下面程序的输出结果为【 】。include<iostream.h>f(int a){int
问题详情
下面程序的输出结果为【 】。
include<iostream.h>
f(int a)
{int b=0;
static int c=3;
b++; c++;
return(a+ b+ c);
}
void main()
{int a=2,i;
for(i=0;i<3;i++)
cout<<f(a)<<end1;
}请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:789
789