Vidyalelo
Data Structure · Q395

Miscellaneous on Data Structures

Programming · Data Structure · question 395

Q395

Which of the following recursive formula can be used to find the factorial of a number?

A.
fact(n) = n * fact(n)
B.
fact(n) = n * fact(n+1)
C.
fact(n) = n * fact(n-1)
Answer
D.
fact(n) = n * fact(1)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board