Examlex

Solved

The Following Method Lacks a Base Case

question 43

True/False

The following method lacks a base case.
public int noBaseCase(int x)
{
if (x > 0)
return noBaseCase(x - 1) + 1;
else return noBaseCase(x - 2) + 2;
}


Definitions:

Related Questions