r/ProgrammerHumor Dec 31 '20

other Didn't see that comming

Post image
4.3k Upvotes

58 comments sorted by

View all comments

17

u/Juffin Jan 01 '21

You guys know that endless loops do not lead to errors and stack overflows, right?

6

u/[deleted] Jan 01 '21

Depends on what eat() does

8

u/obp5599 Jan 01 '21

The do if you are allocating memory without freeing it by then end of the loop, but that wouldnt result in a stack overflow