what is recursion in c language
Recursion is the process which comes into existence when a function calls a copy of itself to work on a smaller problem. Any function which calls itself is called recursive function, and such function calls are called recursive calls. Recursion involves several numbers of recursive calls. However, it is important to impose a termination condition of recursion. Recursion code is shorter than iterative code however it is difficult to understand.
Recursion cannot be applied to all the problem, but it is more useful for the tasks that can be defined in terms of similar subtasks. For Example, recursion may be applied to sorting, searching, and traversal problems.
Hello aspirant,
Recursion: It is the process of repeating the items in self similar way. C Language supports Recursion, which calls itself. But programmers must give exit condition if not it will go into an infinite loop.
I hope this information helps.
Best of Luck!!