Q. Recursion is a process in which a function calls
Solution:
- Recursion is a programming technique where a function calls itself to solve a smaller version of the same problem.
- It involves breaking down a complex problem into smaller, more manageable subproblems.
- The function continues to call itself until it reaches a base case, which stops the recursive calls and starts returning values.
- Recursion is often used to solve problems that have a recursive or self-referential structure, like traversing trees or searching through nested data structures.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.