Recursion

All Questions

Asked by: Zoha Tazmen

What is the purpose of recursion in programming?

Answers (1)

Recursion is a method in which a function calls itself in order to solve a problem. It is used for problems that can be broken down into smaller sub-problems of the same type, like calculating factorials or traversing trees.

Answered by: Zoha Tazmen

Your Answer