What is recursion, …
 
Notifications
Clear all

What is recursion, and how is it useful in programming?

5 Posts
6 Users
2 Likes
581 Views
0
Topic starter

Explain recursion and how is it used.

riyaponraj riyaponraj 20/03/2023 4:09 pm

@bharatupadhyay it reduces the size of code, saves the time and space.

4 Answers
1

Recursion is a technique used to solve computer problems by creating a function that calls itself until your program achieves the desired result

1

Recursion is a programming technique where a function calls itself directly or indirectly to solve a problem. It helps inbreaking down complex problems into simpler and smaller subproblems that can be solved more easily.

0

The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Using a recursive algorithm, certain problems can be solved quite easily.

0

Recursion performs a number of repetitive calls to the function from within the function. The recursive condition performs the repeating calls to the function until the base case is met. The base case is present inside the function, and once the condition of the base case is satisfied, it stops the execution.

Share: