Considering the following algorithm which statement is true
Considering the following algorithm, which statement is true? Assume the variable i is greater than or equal to zero. Select all that apply.
public static void doSomething(int i) {
doSomething(i - 1);
if(i == 0)
return;
}
A) It doesn\'t have a base case, or it has one that doesn\'t execute.
B) None of the other options.
C) It can result in infinite recursion.
D) It doesn\'t actually do recursion.
There may be multiple correct answers. So choose all correct ones.
Solution
Answer: Option: A) It doesn\'t have a base case, or it has one that doesn\'t execute.D) It doesn\'t actually do recursion.

