Question 26
What is the output of the following code for fun(3)?
#include <stdio.h>
void fun(int n) {
if (n == 0) return;
printf("%d ", n);
fun(n - 1);
printf("%d ", n);
}Detailed Solution
Prints n before recursive call and after recursive call: 3 2 1 1 2 3.