You are tasked with writing a C function to calculate the factorial of a number. Which programming technique would be most suitable for this task?

  • Iteration
  • Object-Oriented Programming
  • Parallel Programming
  • Recursion
Iteration is the most suitable technique for calculating the factorial of a number. It avoids the risk of stack overflow associated with recursion and is more efficient for this specific task.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *