Recent questions tagged recursion

5 votes
3 answers
61
4 votes
3 answers
62
2 votes
2 answers
67
1 votes
2 answers
69
Consider the following program. Assume that $x$ and $y$ are integers.f(x, y) { if (y != 0) return (x * f(x,y-1)); else return 1; }What is $f(6,3)?$$243$$729$$125$$216$
3 votes
1 answer
70
2 votes
3 answers
74
4 votes
3 answers
76
0 votes
0 answers
82
Absence of terminating condition in a recursing program cause the following with time error:)a.)array out of bounds b)stack overflowc)Null pointer access ...
1 votes
0 answers
83
Why 2n is added as n-1 & n-2 functions has been called
1 votes
2 answers
84
What is Head recursion and Tail Recursion??