1.

What will be the output of the program?

#include<stdio.h>
void fun(int);
typedef int (*pf) (int, int);
int proc(pf, int, int); int main()
{ int a=3; fun(a); 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,
Answer» E.


Discussion

No Comment Found