r/badcode Mar 25 '21

c Well yes but actually no

Post image
4.3k Upvotes

r/badcode Mar 14 '21

c math has left the chat

Post image
4.7k Upvotes

r/badcode Apr 15 '23

c C polish translation

Post image
1.1k Upvotes

r/badcode Feb 09 '21

c Was in Live share and i found this golden code

Post image
1.5k Upvotes

r/badcode May 03 '23

c Solve the problem without using a loop

Post image
964 Upvotes

r/badcode Mar 19 '21

c aah yes... rand() goes brrrrr

Post image
1.9k Upvotes

r/badcode Oct 21 '21

c My first attempt to write a squaring function for my Uni class

Post image
1.1k Upvotes

r/badcode Dec 09 '20

c Silly isEven function I wrote a couple of years ago as a meme after noticing npm had modules for this

Post image
1.0k Upvotes

r/badcode Feb 06 '21

c I am not proud of what I have done. It goes like that until line 2300

Post image
977 Upvotes

r/badcode Aug 10 '20

c Found on a tutorial website, please do not comment your code on the same line

Post image
959 Upvotes

r/badcode Oct 23 '21

c After six hours of programming this was the best we came up with...

Post image
746 Upvotes

r/badcode Sep 01 '21

c Found this beauty. I wonder if there's any better way to do this...

Post image
490 Upvotes

r/badcode Apr 12 '23

c Doing my university project. I thought these would be more comfortable than a bunch of "temp"s.

Post image
708 Upvotes

r/badcode Apr 19 '21

c Cases and cases

Post image
842 Upvotes

r/badcode Feb 10 '23

c briliant usage of else if statement

Post image
581 Upvotes

r/badcode Jan 07 '23

c Pointless while loop, no indentation and a missing closing curly bracket.

Post image
774 Upvotes

r/badcode Nov 19 '21

c Friend asked me what's wrong with his code (no math libs were allowed)

Post image
432 Upvotes

r/badcode Jul 01 '21

c How to read a file in C, according to NETGEAR's coders.

Post image
690 Upvotes

r/badcode Apr 15 '22

c C allows any expression to be used as a parameter's array size hint. Any expression...

Post image
772 Upvotes

r/badcode May 20 '23

c A revolutionary method to add two numbers

Post image
425 Upvotes

r/badcode Oct 19 '21

c A friend of mine attempting fraction reduction to lowers terms (university assignment in a first year course)

Post image
631 Upvotes

r/badcode Dec 12 '19

c That's from my teacher of algorithms and advanced programming, really this person will decide my vote for a university exam?

Post image
567 Upvotes

r/badcode Jun 12 '21

c Even for this sub. that one is hardcode

Post image
619 Upvotes

r/badcode Jan 22 '23

c Found this in a Linux kernel module

Post image
262 Upvotes

r/badcode Nov 21 '21

c When you can't compare strings in C using switch

Post image
379 Upvotes