Skip to content

Instantly share code, notes, and snippets.

@cosinekitty
Created November 7, 2019 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosinekitty/7dd449407e1bd968800c4dc7f70f49bf to your computer and use it in GitHub Desktop.
Save cosinekitty/7dd449407e1bd968800c4dc7f70f49bf to your computer and use it in GitHub Desktop.
Trying to printf a printf, but still not a quine yet.
#include <stdio.h>
int main()
{
printf("#include <stdio.h>\n");
printf("int main()\n");
printf("{\n");
printf(" printf(\"#include <stdio.h>\\n\");\n");
printf(" return 0;\n");
printf("}\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment