What are the disadvantages of Recursions?

Following are the disadvantages of recursions:
  1. It consumes more storeage space because the recursive calls along with automatic variables are stored on the stack. 
  2. The computer may run out of memory if the recursive calls are not checked. 
  3. It is not efficient in terms of speed and execution. 
  4. some porgram does not offer any concrete advatnages over non-recursive function. 
  5. if proper care is not taken, recursion may result in non-terminating functions. 
  6. recursion is not advocated when the problem can be solved through iteration. 
  7. Looping concept can not be implemented in recursion. 
  8. Not all the  programs can be written recursively. 

0 comments:

Feel free to contact the admin for any suggestions and help.