Skip to content

Instantly share code, notes, and snippets.

@napsternxg
Created October 28, 2012 06:39
Show Gist options
  • Save napsternxg/3967895 to your computer and use it in GitHub Desktop.
Save napsternxg/3967895 to your computer and use it in GitHub Desktop.
Smallest Quine in Windows which works with diff command
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);}
@napsternxg
Copy link
Author

Works with: gcc 3.4.4 cygwin on Windows 7
compile using gcc quineWindows.c
Use ./a.exe | diff quineWindows.c

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