Examveda

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)

D. fact(n) = n * fact(1)

Answer: Option C


This Question Belongs to Data Structure >> Miscellaneous On Data Structures

Join The Discussion

Related Questions on Miscellaneous on Data Structures