单选题 C++
题号 #4126125

下面程序的输出结果是(    )
   #include<iostream>
   using namespace std;
   void fun(int i);
   int main()
   {
        int n;
        fun(n);
        return 0;   
   }
   void fun( int n )
   {
    static int x = 1;
    int y = 1 ;
    if(i>0)
      {
        ++x;
        ++y;
        cout<<x<<''<<y;
        fun(i - 1);
       }
    }

进入在线模考

参考答案

D

答案解析

略。

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考