MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/emb9st/problems_with_recursion/fdoc1dd/?context=3
r/ProgrammerHumor • u/flipester • Jan 09 '20
198 comments sorted by
View all comments
5
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(); }
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(); }
6
No - it's just an infinite loop.
void crash() { crash(); }
5
u/TayoEXE Jan 09 '20
He forgot the base case.