Skip to content

Instantly share code, notes, and snippets.

@yzh119
Created April 2, 2021 05:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yzh119/b4fa97645b155418969f75a682032397 to your computer and use it in GitHub Desktop.
Save yzh119/b4fa97645b155418969f75a682032397 to your computer and use it in GitHub Desktop.
My solution to quine program in C
#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