You are here: Home / Topics / The Disadvantages of Recursion Processes in C

The Disadvantages of Recursion Processes in C

Filed under: C Programming on 2022-07-04 11:27:24

When you are using Recursion in C programming, you have to face some issues. Following are the disadvantage of using recursion in C Programming.

  1. 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.
  2. 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.
About Author:
Babita     View Profile
Learning is the best habbit. Learn new questions with me.