Consider the following two functions.
void fun1(int n) {
if(n == 0) return;
printf("%d", n);
fun2(n - 2);
printf("%d", n);
}
void fun2(int n) {
if(n == 0) return;
printf("%d", n);
fun1(++n);
printf("%d", n);
}
The output printed when fun1(5) is called is 2017 SET 1 || MCQ || 2-mark
53423122233445
53423120112233
53423122132435
53423120213243
This question is part of this quiz :
GATE || C Programming || PYQS (2010 to 2025),GATE|| C Programming & Data Structure || Pyqs (2010 to 2025 )