Last active
October 25, 2015 21:20
-
-
Save mrhead/40d75640cbb5848f9b61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define a /* | |
#! \ | |
sub 'echo {print @_; print "\n"} | |
#' 2>/dev/null | |
# \ | |
echo "my polyglot"; exit; | |
# \ | |
sub puts{}; | |
puts "my polyglot"; | |
exit; | |
#*/ | |
#include <stdio.h> | |
#define sub main | |
#define asdf () | |
sub asdf { printf("my polyglot\n");} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What it does?
It prints
my polyglot
to the screen.Why am I proud of it?
Because it is my very own polyglot and it does the same thing in four different languages: