Skip to content

Instantly share code, notes, and snippets.

@oddcoder
Created November 7, 2015 16: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 oddcoder/55311c0c728667761784 to your computer and use it in GitHub Desktop.
Save oddcoder/55311c0c728667761784 to your computer and use it in GitHub Desktop.
my first quine
#include <stdio.h>/*Created By Ahmed Mohamed Abd El Mawgood*/
int main(void) /*Email: ahmedsoliman0x666@gmail.com*/
{
const char *t1="#include <stdio.h>/*Created By Ahmed Mohamed Abd El Mawgood*/%cint main(void) /*Email: ahmedsoliman0x666@gmail.com*/%c{%c%c";
const char *t2="const char *t1 = %c%s%c;%c%cconst char *t2 = %c%s%c;%c%cchar n=10, q=58,t=9;%c%cprintf(t1,n,n,n,t);%c%cprintf(t2,q,t1,q,n,t,q,t2,q,n,t,n,t,n,t,n,n);%c}%c";
char n=10, q=34,t=9;
printf(t1,n,n,n,t);
printf(t2,q,t1,q,n,t,q,t2,q,n,t,n,t,n,t,n,n);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment