Consider the code for the recursive method riddle shown in this code snippet: To avoid infinite recursion, which of the following lines of code should replace the current terminating

Consider the code for the recursive method riddle shown in this code snippet: To avoid infinite recursion, which of the following lines of code should replace the current terminating case?
A.if (n <= 0) B.if (n == -1) C.if (n >= 0)
D.The terminating case as shown will avoid infinite recursion.

CategoriesUncategorized

Leave a Reply

Your email address will not be published.