public static int fact(int n) {
if (n <= 1) return 1;
return n * fact(n - 1);
}How many recursive calls (excluding the initial) does fact(5) make?
- A
3
- Bcheck_circle
4
- C
5
- D
6
Explanation
fact(5) calls fact(4), then fact(3)..fact(1), totaling 4 recursive calls.