1 2 3 4 5 6 7 8 9 10 11 12 | #include <cstdio> using namespace std; int ack(int m,int n){ if(m==0)return n+1; else if(n==0)return ack(m-1,1); else return ack(m-1,ack(m,n-1)); } int main(){ printf("%d\n",ack(3,4)); putchar('\n'); return 0; } |
0 of 4 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 4 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1、09行的ack(3,4)改为ack(-1,-1),程序能正常出结果。( )
ack函数增长很慢( )
3、程序输出为( )
4、将09行ack(3,4)修改为ack(2,5),输出将为( )