2 votes 2 votes Programming in C recursion + – nag.swarna asked Sep 2, 2018 nag.swarna 568 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply MiNiPanda commented Sep 2, 2018 reply Follow Share Since you have given option D so you don't need the whole explanation of how this recursion works. Why you didn't get that extra 0 is because you mistakenly thought that it is like: if(x>0) { myfunc(--x); print("%d",x); } But check the braces.. print statement is not inside the if block. So myfunc(0) will print that one extra 0. 1 votes 1 votes Shaik Masthan commented Sep 2, 2018 reply Follow Share answer should be option A only. 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes Caption balaganesh answered Sep 2, 2018 balaganesh comment Share Follow See all 0 reply Please log in or register to add a comment.