Home » C Programming » Functions

What will be the output of the program? #include 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); } }

Correct Answer: 0, 1, 2, 0,

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion