有以下程序
#include <stdio.h>
void f(int x[], int n)
{ if ( n > 1)
{ printf("%d,", x[0]);
f(&x[1], n-1);
printf("%d,", x[0]);
}
else
printf("%d,", x[0]);
}
main( )
{ int z[3] = {4, 5, 6};
f(z, 3);
printf("\n");
}
程序运行后的输出结果是
A) 6,5,4,6,5,4,
B) 4,5,6,5,4,
C) 4,5,6,4,5,6,
D) 6,5,4,5,6,
谁能解释一下程序怎么运行的,我不能理解这里的递归
三十二应遍尘刹
asd8532