A recursive program creates a stack within itself and forces users to write less code.
Are there any cases where recursion is really preferable over manual stacks for a reason other than the one mentioned above?
How is dynamic memory allocation more expensive than heap allocations by a recursive program?
, , , " ", . , , , . ( , ? , if/else while ?)
if
else
while
- , . ; ; , ( : : " ", , ), , ; , , , () .
@ruakh. , ( , , ) ( ) , , , .