You are hereSelf Replicating Software

Self Replicating Software


This is not only a palindromic program, it's actually a palindromic self-replicating program.

That means that if you take your C compiler,
compile this code, and then run it,
the output of the program is exactly the code of the program.

You'll need to remove the newline characters (i.e. make it one long line), and you may need to add #include , which slightly blemishes the program, but it really is still incredibly cool. (By the way, I didn't write this, someone mailed it to me...)

/**/main(){char*a=/*/};)q,q,a,q,q,811+a
(ftnirp;'"'=q,/**/"/**/main(){char*a=/*/
};)q,q,a,q,q,811+a(ftnirp;'c%'=q,/*
*/c%s%c%/**/,q='c%';printf(a+118,q,q,a,q,q);
}/*/=a*rahc{)(niam/**/main(){char*a=/*/};
)q,q,a,q,q,811+a(ftnirp;'%c'=q,/**/%c%
s%c/**/,q='%c';printf(a+118,q,q,a,q,q);
}/*/=a*rahc{)(niam/**/"/**/,q='"';printf
(a+118,q,q,a,q,q);}/*/=a*rahc{)(niam/**/

via http://www.derf.net/palindromes/old.palindrome.html