填空题:递归函数
void fun(int n,int k)
{
if(n)
{
printf("<1:%d>",n%k);
fun(n/k,k);
printf("{2:%d}",n%k);
}
}
执行函数fun(35,7)的输出结果是。
执行函数fun(60,8)的输出结果是。
答案:
第1空:<1:0><1:5>{2:5}{2:0} ||
第2空:<1:4><1:7>{2:7}{2:4} ||
",n%k); fun(n/k,k); printf("{2:%d}",n%k); }}执行函数fun(35,7)的输出结果是。执行…"> -->