← Back to Question List
C Code Walkthrough #4
Recursion Trace
📄 Code
Read carefully — what does this print?1#include <stdio.h>23void countdown(int n) {4 if (n <= 0) {5 printf("Go!\n");6 return;7 }8 printf("%d\n", n);9 countdown(n - 1);10}1112int main() {13 countdown(3);14 return 0;15}