Question
Write the difference between Recursion and Iterations.
| Recursion | Iteration |
• Due to function calling overhead execution of recursion is slower. | • Whereas execution of iteration is faster.
|
• In recusion, a stack is used to store the set of new local variables and parameters, each time the function is called. | • Iteration does not use the stack.
|
Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.