Which of the following is the correct output for the program given below?
#include<stdio.h>
void fun(int);
int main()
{
int a;
a=3;
fun(a);
printf("\n");
return 0;
}
void fun(int n)
{
if(n>0)
{
fun(--n);
printf("%d",n);
fun(--n);
}
}
(a) 0 2 1 0
(b) 1 1 2 0
(c) 0 1 0 2
(d) 0 1 2 0