0 votes 0 votes #include <stdio.h> void e(int); int main() { int a = 3; e(a); putchar('\n'); return 0; } void e(int n) { if (n > 0) { e(--n); printf("%d ", n); e(--n); } } I am not getting here that when e(0) is called how is the code executed ? radha gogia asked Jul 26, 2015 radha gogia 2.6k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes when e(0) is called, if condition becomes false, and control doesn't go into if block, and simply returned from e() function. Happy Mittal answered Jul 26, 2015 Happy Mittal comment Share Follow See all 2 Comments See all 2 2 Comments reply radha gogia commented Jul 28, 2015 reply Follow Share So after returning at which statement would it come ? 0 votes 0 votes Happy Mittal commented Jul 28, 2015 reply Follow Share It will come at statement just after the call to e(0). 1 votes 1 votes Please log in or register to add a comment.