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
3
u/not_a_bot_494 Jul 10 '26
Could you give an example of a problem that we haven't discovered a iterative solution to? The naieve approach to just push all function contents to a (user created) stack should work for all cases?