What are the advantages and disadvantages of recursive function.


Advantages:
  • Easier understanding
  • Writing compact code
  • Easier coding
  • Using recursively defined data structure like trees
Disadvantages:

  • Recursive function executes slowly
  • Additional storage space is required
  •  A stack is needed to process 

0 Comment "What are the advantages and disadvantages of recursive function."

Post a Comment