Ask Question

Give the difference betewen recursion and interation in C. Sight what are the advantages and their disadvantages?

+1
Answers (1)
  1. 29 May, 07:59
    0
    I believe you mean iteration. Recursion is when you have a function that calls or uses it's self. it's advantageous because it reduces the amount of code but can fall victim to an endless loop. Iteration is using a while loop or any kind of loop to iterate through a data set normally an array, iteration allows you to do an action for every iterated item but a downside is that it takes a long time to iterate and it is not efficient
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Give the difference betewen recursion and interation in C. Sight what are the advantages and their disadvantages? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers