home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mcsun!sun4nl!sci.kun.nl!nuntius
- From: Ron Wichers Schreur <ronny@cs.kun.nl>
- Subject: C palindrome puzzle: a solution
- Message-ID: <C0DuoE.7M8@sci.kun.nl>
- Sender: news@sci.kun.nl (News owner)
- Nntp-Posting-Host: mac1d.cs.kun.nl
- Organization: University of Nijmegen
- X-Useragent: Nuntius v1.1
- Date: Tue, 5 Jan 1993 13:26:38 GMT
- Lines: 34
-
-
- Hello,
-
- Some time ago, I challenged you to write a C palindrome
- that prints "hello world", without using comments. A few
- solutions were given, but they ignored new-line characters.
-
- Perhaps you are interested in the palindrome I found. To
- save band width, I'll only post the second half of
- my program:
-
- ab(( b enifed#
- cd enifed#
- cb bc enifed#
- ;dc int enifed#
- diov main enifed#
- niam tni void enifed#
- };0 nruter;dc"dlrow olleh"cb stup{
- ) dc enifed#
- )diov cb niam tni
- ab( cb enifed#
- >h.oidts<edulcni#
- ab enifed#
- )ab(ba enifed#
- ;)diov(niam tni
-
- It must be possible to find a shorter version. If
- you do, I'd be interested in your solution.
-
-
- Cheers,
-
- Ronny Wichers Schreur
- ronny@cs.kun.nl
-