阅读下面程序: #include<iostream.h> void fun(int n) { int x(5); static int y(10); if(n>0) { ++x; ++y; cou

admin2012-01-20  34

问题 阅读下面程序:
   #include<iostream.h>
   void fun(int n)
   {
   int x(5);
   static int y(10);
   if(n>0)
   {
   ++x;
   ++y;
   cout<<x<<","<<y<<end1;
   }
   }
   void main()
   {
   int m(1);
   fun(m);
   }
   则该程序的输出结果是______。

选项

答案6,11

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

最新回复(0)