Alsalamu Alikum,
So, It's my first time to study and work on recursion functions, and it was said in the lecture that it is better than the iterative function because
they are shorter, more elegant, more readable, naturally developing and it's code is easier to understand.It comes with more cost in memory space and execution speed. and however the performance penalty is negligible and it's worth the extra clarity.
and I've asked my TA in the collage and he said that there is no a real programmer who doesn't deal with recursive functions.
But I've worked on some programs made by the prof. , and in each one I found that the iterative function is simpler in the idea, more readable and easier in understanding.
So would anyone tell me more about recursion and it' advantages and disadvantages.
It's my first post , so sorry for talking so much.and thanks in advance