Question
Write the difference between Recursion and Iterations.

Answer

RecursionIteration

• 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.

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free