Skip to content

Instantly share code, notes, and snippets.

@Property404
Last active December 3, 2023 06:18
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Property404/e31b99deb3527159e183 to your computer and use it in GitHub Desktop.
Save Property404/e31b99deb3527159e183 to your computer and use it in GitHub Desktop.
Obfuscated 99 Bottles of Beer (compile with gcc -w --trigraphs beer.c). No semicolons, curly brackets, declarations of variable types, or numeric literals
// Are you there god??/
??=define _(please, help)
??=define _____(i,m, v,e,r,y) r%:%:m
??=define ____ _____(a,f,r,a,i,d)
main(__)<%____(!_(-~-??-((-~-??-!__<<-
??-!!__)<<-??-(!!__<<!!__))+-~-~-??--~-~
-~-~-~-~-??-(-~-~-~-~-??-!!__<<-~!!__),-
??-!__))<%??>%>_(__,___)??<____
(printf("please let me die??/r%d bottle%s"
" of bee%s""""??/n",(!(___
%-~-~!!___))?--__+!___++:__+!___++,!(__-!!___)
&&___%-~-~!!___??!??!!(___%-~-~!!___??!??!__
-(-~!!___))?"":"s",___%-~-??-!!___<-??-!!___?
"r on the wall":"eeeeeeer! Take one down,pass ??/
it around")&&__&&_(__,___),"mercy I'm in pain")??<??>??>
@alexanderdavidj
Copy link

he is not.

@Property404
Copy link
Author

Wow I've never had someone comment on one of my gists before. Very exciting day!

@lichrot
Copy link

lichrot commented Oct 6, 2022

Wow I've never had someone comment on one of my gists before. Very exciting day!

Someone linked to this gist on HN :)

@Property404
Copy link
Author

😮

@ksaj
Copy link

ksaj commented Dec 3, 2023

And again today. Expect to see this every year from now on. Some posters are just that original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment