Skip to main content
added 150 characters in body
Source Link
marco-fiset
  • 8.8k
  • 9
  • 38
  • 46

You surely can use loops in a recursive function. What makes a function recursive is only the fact that the function calls itself at some point in its execution path. However you should have some condition to prevent infinite recursion calls from which your function can't return.

You surely can use loops in a recursive function. What makes a function recursive is only the fact that the function calls itself.

You surely can use loops in a recursive function. What makes a function recursive is only the fact that the function calls itself at some point in its execution path. However you should have some condition to prevent infinite recursion calls from which your function can't return.

Source Link
marco-fiset
  • 8.8k
  • 9
  • 38
  • 46

You surely can use loops in a recursive function. What makes a function recursive is only the fact that the function calls itself.