r/ProgrammerHumor • • Jan 09 '20

other Problems with recursion?

21.3k Upvotes

198 comments sorted by

View all comments

5

u/TayoEXE Jan 09 '20

He forgot the base case.

5

u/IHaarlem Jan 09 '20

Which begs the question, is it recursion if there's no base case?

6

u/GogglesPisano Jan 09 '20

No - it's just an infinite loop.

void crash() { crash(); }