单项选择题

下列程序的输出结果为( )。   # include <iostream.h>   int func(int n)   {     if (n<1)return 1;     else return n + func (n-1);     return 0;   {   void main( )   {     cout << func (5) << endl;   }

A. Variant
B. Byte
C. Boolean
D. Integer
题目列表

你可能感兴趣的试题

微信扫码免费搜题