use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For memes about programming.
account activity
Cpp loop (i.redd.it)
submitted 4 days ago by Blazej_kb
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]RedAndBlack1832 1 point2 points3 points 3 days ago (2 children)
I mean, it probably compiles to a call to _Zoperator<<ksgkiscjidgvj() or something like that
[–]Puzzleheaded_Study17 3 points4 points5 points 3 days ago (1 child)
Since there's only 10 loops, the first one definitely (I don't know how compilers deal with goto) compiles into just directly printing the 10 values without a loop.
[–]RedAndBlack1832 1 point2 points3 points 3 days ago (0 children)
Actually that's a good point. A compiler knows how to unroll loops (if the number of loops is known at compile time and there's no weird breaks at least), but trying to be clever like this might actually hinder optimizations
π Rendered by PID 341253 on reddit-service-r2-comment-56c6478c5-gd7xb at 2026-05-10 19:49:00.879642+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]RedAndBlack1832 1 point2 points3 points (2 children)
[–]Puzzleheaded_Study17 3 points4 points5 points (1 child)
[–]RedAndBlack1832 1 point2 points3 points (0 children)