test_c/c_expert/chapter6/print_a.c

18 lines
145 B
C
Raw Normal View History

2020-07-31 13:18:15 +00:00
#include <stdio.h>
void a(int i)
{
if (i > 0)
a(--i);
else
printf("i has reached zero \n");
return;
}
int main(){
a(1);
return 0;
}