IGDTUW 2025 — Computer PYQ
IGDTUW | Computer | 2025What will be the output of following C program?
int fun(int n) {
if(n == 0) return 1;
else return n * fun(n - 1);
}
int main() {
printf("%d", fun(3));
}

What will be the output of following C program?
int fun(int n) {
if(n == 0) return 1;
else return n * fun(n - 1);
}
int main() {
printf("%d", fun(3));
}