When you are using Recursion in C programming, you have to face some issues. Following are the disadvantage of using recursion in C Programming.
- Any recursive program is generally much slower than any non-recursive program. It is because the recursive programs have to make the function calls. Thus, in this case, the program needs to save its current state entirely and then retrieve it later (again). It ultimately consumes much more time and makes the recursive programs comparatively much slower.
- In the case of recursive programs, more memory needs to hold the intermediate states in any stack. On the other hand, the non-recursive programs don’t consist of any form of intermediate states. Thus, they also don’t require extra memory in any case.