voidfun(intk){if(k>0)fun(k-1);printf("%d",k);}当k=5时,即为fun
(4);printf("%d",k);/*输出5*/当k=5时,即为fun
(4);printf("%d",k);/*输出5*/当k=4时,即为fun
(3);printf("%d",k);/*输出4*/当k=3时,即为fun
(2);printf("%d",k);/*输出3*/当k=2时,即为fun
(1);printf("%d",k);/*输出2*/当k=1时,即为fun(0);printf("%d",k);/*输出1*/当k=0时,即为printf("%d",k);/*输出0*/等价于输出printf("0");printf("1");printf("2");printf("3");printf("4");printf("5");输出结果为012345