Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 exptools 1/6/84; site ihnet.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!ihnet!eklhad From: eklhad@ihnet.UUCP (K. A. Dahlke) Newsgroups: net.lang.c Subject: palindromic C programs Message-ID: <155@ihnet.UUCP> Date: Fri, 24-Aug-84 16:06:17 EDT Article-I.D.: ihnet.155 Posted: Fri Aug 24 16:06:17 1984 Date-Received: Sat, 25-Aug-84 07:37:56 EDT Organization: AT&T Bell Labs, Naperville, IL Lines: 14 ~~~~~~~~ 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