+ 1

What is the difference between recursion and iteration.? 🤔

25th Aug 2017, 2:29 AM
Ash
Ash - avatar
3 Respostas
+ 5
Iter: iterating through iterations of a loop (normally only a certain # of iterations) Recursion: Goes on and on; has to have a base case to "break" from the infinite looping. For more info, see recursion.
25th Aug 2017, 2:51 AM
J.G.
J.G. - avatar
+ 2
Recursion completes a task by repetitive call to a function. Iteration completes a task by using loops.
25th Aug 2017, 2:47 AM
Ipang
+ 1
Recursion means calling a function by itsef.. Iteration means the loop continuosly executes until the condition becomes false
11th Sep 2020, 10:40 AM
Lokeswari