https://pintia.cn/problem-sets/12/problems/357
这个题目对于理解递归很有帮助,递归第一个结束的程序是出口。
1 void dectobin(int n) 2 { 3 if (n <= 1) 4 { 5 printf("%d", n); 6 } 7 else 8 { 9 dectobin(n / 2); 10 printf("%d", n % 2); 11 } 12 }