Created
March 7, 2013 21:26
-
-
Save ciupicri/5111952 to your computer and use it in GitHub Desktop.
My first quine
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
#include <stdio.h> | |
int main() | |
{ | |
char n='\n',b='\\',q='"'; | |
char *fmt="#include <stdio.h>%cint main()%c{%cchar n='%cn',b='%c%c',q='%c';%cchar *fmt=%c%s%c;%cprintf(fmt,n,n,n,b,b,b,q,n,q,fmt,q,n,n,n);%c}%c"; | |
printf(fmt,n,n,n,b,b,b,q,n,q,fmt,q,n,n,n); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment