What is the output of the above program? Explain.">
#includevoid fun(int);void main(){ inta; a=3; fun(a); }void fun(int){ if(n>0) { fun(--n); printf("%d",n); fun(--n); } }
What is the output of the above program? Explain.
It proceeds like thisfun(3)fun(2)fun(1)fun(0)fun(-1)printf("%d",n)(Here n is 0)fun(-1)printf("%d",n)(Here n is 1)fun(0)printf("%d",n)(Here n is 2)fun(1)fun(0)printf("...
The out will be just like 3 2 1 0 2 1 0 1 0 0... not sureThis is a recursive function with 2 recursive calls one at line 13 and other in at line 15.The variable 'a' initial...