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

5

u/HorsesFlyIntoBoxes Jul 10 '26

Recursion clicked for me when I treated it like mathematical induction in code form.

2

u/-H_- Jul 10 '26 edited Oct 21 '26

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Humor follow hammock mellow special hobbies harbor slap ink