下面程序的输出结果是 【8】 。 #include <iostream> using
题型:填空题
问题:
下面程序的输出结果是 【8】 。 #include <iostream> using namespace std; int d=1; fun(int p){ static int d = 5; d+ =p; cout<<d; return (d) ; } void main ( ) { int a =3; cout<<fun ( a + fun (d) )<<endl; }
下面程序的输出结果是 【8】 。 #include <iostream> using namespace std; int d=1; fun(int p){ static int d = 5; d+ =p; cout<<d; return (d) ; } void main ( ) { int a =3; cout<<fun ( a + fun (d) )<<endl; }