Question 51
What output is generated by calling 'print_rev(4)'?
#include <stdio.h>
void print_rev(int n) {
if (n == 0) return;
printf("%d ", n);
print_rev(n - 1);
}Detailed Solution
Printing occurs before the recursive call, outputting values in descending order: 4 3 2 1.