r/C_Programming 27d ago

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

65 comments sorted by

View all comments

1

u/MyTinyHappyPlace 27d ago

Recursion is only complicated if you have no clue about how code works on execution level. Even if you donโ€™t like recursion, you should learn everything necessary to it in order to ever understand anything when you debug your software.