wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following two functions;
void fun1 (int n)
{ if (n = = 0) return ;
print("%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 fun 1 (5) is called is

A
53423120112233
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
53423122132435
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
53423122233445
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
53423120213243
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon