Created
April 2, 2021 05:47
-
-
Save yzh119/b4fa97645b155418969f75a682032397 to your computer and use it in GitHub Desktop.
My solution to quine program in C
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> | |
char str[] = "#include <stdio.h>%cchar str[] = %c%s%c;%cint main() {%c printf(str, 10, 34, str, 34, 10, 10, 10);%c}"; | |
int main() { | |
printf(str, 10, 34, str, 34, 10, 10, 10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment