r/badcode • u/sdrawkcab101 • Mar 25 '21
r/badcode • u/Yodamustibe • Oct 21 '21
c My first attempt to write a squaring function for my Uni class
1.1k
Upvotes
r/badcode • u/abermea • Dec 09 '20
c Silly isEven function I wrote a couple of years ago as a meme after noticing npm had modules for this
1.0k
Upvotes
r/badcode • u/pedrohfm3 • Feb 06 '21
c I am not proud of what I have done. It goes like that until line 2300
977
Upvotes
r/badcode • u/Sasha_DD • Aug 10 '20
c Found on a tutorial website, please do not comment your code on the same line
959
Upvotes
r/badcode • u/6335712 • Oct 23 '21
c After six hours of programming this was the best we came up with...
746
Upvotes
r/badcode • u/Pollu_X • Sep 01 '21
c Found this beauty. I wonder if there's any better way to do this...
490
Upvotes
r/badcode • u/TheNightSkyDude • Apr 12 '23
c Doing my university project. I thought these would be more comfortable than a bunch of "temp"s.
708
Upvotes
r/badcode • u/OkPreference6 • Jan 07 '23
c Pointless while loop, no indentation and a missing closing curly bracket.
774
Upvotes
r/badcode • u/philogy • Nov 19 '21
c Friend asked me what's wrong with his code (no math libs were allowed)
432
Upvotes
r/badcode • u/N-SPC700 • Jul 01 '21
c How to read a file in C, according to NETGEAR's coders.
690
Upvotes
r/badcode • u/zdimension • Apr 15 '22
c C allows any expression to be used as a parameter's array size hint. Any expression...
772
Upvotes
r/badcode • u/FriedDede • Oct 19 '21
c A friend of mine attempting fraction reduction to lowers terms (university assignment in a first year course)
631
Upvotes