A-A+

下面程序的输出结果是【 】。 include<iostream.h> int d=1; in

2022-08-05 20:31:19 问答库 阅读 171 次

问题详情

下面程序的输出结果是【 】。
include<iostream.h>
int d=1;
int fun(int p){
static int d=5;
d+=p;
cout<<d<<" ";
return d;
}
void main(){
int a:3;
cout<<fun(a+fun(D) )<<end1;
}请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:6 15 15
6 15 15

考点:程序