palindromic C programs

K. A. Dahlke eklhad at ihnet.UUCP
Sat Aug 25 06:06:17 AEST 1984


~~~~~~~~

Many articles have addressed the self-reproducing C program.
Are there any C programs which print themselves in reverse?
I believe it can be done, but it will take me a while.

Are there any C programs which run, and are palindromes themselves?
I can think of one:
main(){}/*/}{)(niam
This is probably the only way to do it,
since key-words become variables when reversed.
-- 

Karl Dahlke    ihnp4!ihnet!eklhad



More information about the Comp.lang.c mailing list