Consider the following two functions:
The output printed when fun1 (5) is called is
c
- A53423122233445
- B53423120112233
- C53423122132435
- D53423120213243
Programming in CFunctions, Parameter Passing, Scope Rules, RecursionMCQ2 marks · −2/3 if wrongMedium
1void fun1 (int n) {
2 if (n == 0) return;
3 printf ("%d", n);
4 fun2 (n - 2);
5 printf ("%d", n);
6}
7void fun2 (int n) {
8 if (n == 0) return;
9 printf ("%d", n);
10 fun1(++n);
11 printf ("%d", n);
12}
13A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.