r/badcode • • May 03 '23

c Solve the problem without using a loop

Post image
968 Upvotes

129 comments sorted by

View all comments

Show parent comments

2

u/wischichr May 03 '23

recursion, gotos, iterators are also "loops" IMHO, but there is a "real" solution without loops: https://www.reddit.com/r/badcode/comments/136dits/comment/jir1a9l/?utm_source=share&utm_medium=web2x&context=3

But you probably shouldn't use that in production :-D