[Home]Quine

HomePage | Recent Changes | Preferences

Difference (from prior major revision) (no other diffs)

Changed: 7,8c7,8
char x[]="char x[]=%c%s%c;%cint main() {printf(x,34,x,34,10,10);return 0;}%c";

int main() {printf(x,34,x,34,10,10);return 0;}
char x[]="char x[]=%c%s%c;%cint main() {printf(x,34,x,34,10,10);return 0;}%c";
int main() {printf(x,34,x,34,10,10);return 0;}

Changed: 10c10
perhaps add some more Quines here
perhaps add some more Quines here

A quine is a computer program that produces its complete source code as its only output. It is often used for hackish amusement to try and develop the shortest possible quine in any given programming language.

Quines are named after W. V. Quine, who made extensive study of indirect self-reference.

Sample quine in C

 char x[]="char x[]=%c%s%c;%cint main() {printf(x,34,x,34,10,10);return 0;}%c";
 int main() {printf(x,34,x,34,10,10);return 0;}

perhaps add some more Quines here

HomePage | Recent Changes | Preferences
This page is read-only | View other revisions
Last edited November 12, 2001 7:55 pm by 217.34.119.xxx (diff)
Search: