填空题 C语言
题号 #152517

阅读下面程序,则程序的执行结果为【19】。 
#include "stdio.h" 
fun(int k,int *p) 
{ int a,b; 
if(k==1||k==2) 
*p=1;  
else{ fun(k-1,&a); 
fun(k-2,&b); 
*p=a+b; 
}  
} 
main() 
{ int x; 
fun(6, &x); 
printf( "%d\n",x); 
}

进入在线模考

参考答案

暂无

答案解析

8

你可能感兴趣的试题

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