this post was submitted on 06 Aug 2023
170 points (94.3% liked)

Programmer Humor

32361 readers
425 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] bool@lemm.ee 23 points 1 year ago (1 children)

I'm going crazy, but if this compiles at all I bet it generates the same machine code when compiled with each line reversed.

[โ€“] nihilomaster@lemmy.ml 24 points 1 year ago

When compiled with a C Compiler and run it will print "C". When reversed, compiled and run it will print "Minecraft Function". This code also runs in the Minecraft Function language. It will print "Minecraft Function". Similarly, if reversed and run, it will print "C".