Examlex

Solved

Consider the Following Recursive Code Snippet: Public Int Mystery(int N

question 70

Multiple Choice

Consider the following recursive code snippet: public int mystery(int n, int m)
{
If (n == 0)
{
Return 0;
}
If (n == 1)
{
Return m;
}
Return m + mystery(n - 1, m) ;
}
What parameter values for n would cause an infinite recursion problem in the following method?


Definitions:

Related Questions