A tail-recursive function often can be rewritten iteratively using a _______. 

  • stack 
  • queue 
  • loop 
  • array
A tail-recursive function has its recursive call as the last action, which means the function doesn't need to hold onto its context or any other state between recursive calls. This nature allows it to be easily translated into an iterative structure, primarily using loops.
Add your answer
Loading...

Leave a comment

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