Quines in C

Here is a Quine in ANSI C.

 

 

 

 

 

And here's another (much shorter) one:

 

#include <stdio.h>

char x[]="#include <stdio.h>%cchar x[]=%c%s%c;%cint main() {printf(x,10,34,x,34,10,10);return 0;}%c";

int main() {printf(x,10,34,x,34,10,10);return 0;}

 

 

Gg1

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *