r/C_Programming • u/yug_jain29 • 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
View all comments
Show parent comment
0
u/AndrewBorg1126 Jul 10 '26 edited Jul 10 '26
Are you actually telling me that you think rewriting recursion to use a stack and itterate through a list of instructions is not rewriting it to be itterative?
Read the words you are writing, smh.
Yes, I know the itterative solution with a stack is isomorphic to recursion, that's my point.