r/C_Programming • • Jul 10 '26

Question can I skip recursive functions?

a code i can run with the logic of iterative, so why do I have to learn the new concept as complicated as recursive? (ik it's one of important questions in c)

if yes will u pls explain it with a very realistic and simple example

thanks a lot 🙏

0 Upvotes

64 comments sorted by

View all comments

Show parent comment

2

u/Computerist1969 Jul 10 '26

Logic at step 3 is backwards.

1

u/Ch1noXL Jul 10 '26

Fixed it. Thank you.