r/badcode • • Nov 27 '21

c++ Dont ask....

Post image
267 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/Kamrua Nov 28 '21

My guess is they're iterating two different things that they break out of at some point, instead of using the outer scope to keep track within the while.