

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following recursive implementation to find the factorial of a number. Which of the lines is the base case? |
A. | return 1 |
B. | return n * fact(n-1) |
C. | if(n == 0) |
D. | if(n == 1)View Answer |
Answer» D. if(n == 1)View Answer | |