0
2.7kviews
What is recursion? Write a recursive function in C to find sum of digits of a number
1 Answer
| written 7.6 years ago by |
The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called as recursive function.
Using recursive algorithm, certain problems can be solved quite easily. Examples of such problems are Towers of Hanoi (TOH), Inorder/Preorder/Postorder Tree Traversals, DFS of Graph, etc
In …