Created
October 28, 2012 06:39
-
-
Save napsternxg/3967895 to your computer and use it in GitHub Desktop.
Smallest Quine in Windows which works with diff command
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
main(){char *s="main(){char *s=%c%s%c;printf(s,34,s,34, 13,10);}%c%c";printf(s,34,s,34, 13, 10);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works with: gcc 3.4.4 cygwin on Windows 7
compile using
gcc quineWindows.c
Use
./a.exe | diff quineWindows.c