-
-
Save fayimora/7807042 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** my sample quine code**/ #include <stdio.h> | |
static char quine[] = "\n\t\\\""; | |
int main(void) { | |
const char *code = "/** my sample quine code**/ #include <stdio.h>%c%cstatic char quine[] = %c%cn%ct%c%c%c%c%c;%c%cint main(void) {%c%cconst char *code = %c%s%c;%c%cprintf(code, quine[0], quine[0], quine[3], quine[2], quine[2], quine[2], quine[2], quine[2], quine[3], quine[3], quine[0], quine[0], quine[0], quine[1], quine[3], code, quine[3], quine[0], quine[1], quine[0], quine[0], quine[1], quine[0], quine[0]);%c%c%creturn 0;%c}%c"; | |
printf(code, quine[0], quine[0], quine[3], quine[2], quine[2], quine[2], quine[2], quine[2], quine[3], quine[3], quine[0], quine[0], quine[0], quine[1], quine[3], code, quine[3], quine[0], quine[1], quine[0], quine[0], quine[1], quine[0], quine[0]); | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see you forking my quine