下面程序的输出结果是【 】。 #include<iostream.h> int d=1; int fun(int p){ static int d=5; d+=p; cout<<d<<" ";

admin2009-01-15  27

问题 下面程序的输出结果是【  】。
   #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

解析
转载请注明原文地址:https://kaotiyun.com/show/lykp777K
0

最新回复(0)