home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19250 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.1 KB  |  47 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!mcsun!sun4nl!sci.kun.nl!nuntius
  3. From: Ron Wichers Schreur <ronny@cs.kun.nl>
  4. Subject: C palindrome puzzle: a solution
  5. Message-ID: <C0DuoE.7M8@sci.kun.nl>
  6. Sender: news@sci.kun.nl (News owner)
  7. Nntp-Posting-Host: mac1d.cs.kun.nl
  8. Organization: University of Nijmegen
  9. X-Useragent: Nuntius v1.1
  10. Date: Tue, 5 Jan 1993 13:26:38 GMT
  11. Lines: 34
  12.  
  13.  
  14. Hello,
  15.  
  16. Some time ago, I challenged you to write a C palindrome
  17. that prints "hello world", without using comments. A few
  18. solutions were given, but they ignored new-line characters.
  19.  
  20. Perhaps you are interested in the palindrome I found. To
  21. save band width, I'll only post the second half of
  22. my program:
  23.  
  24.     ab(( b enifed#
  25.     cd enifed#
  26.     cb bc enifed#
  27.     ;dc int enifed#
  28.     diov main enifed#
  29.     niam tni void enifed#
  30.     };0 nruter;dc"dlrow olleh"cb stup{
  31.     ) dc enifed#
  32.     )diov cb niam tni
  33.     ab( cb enifed#
  34.     >h.oidts<edulcni#
  35.     ab enifed#
  36.     )ab(ba enifed#
  37.     ;)diov(niam tni
  38.  
  39. It must be possible to find a shorter version. If
  40. you do, I'd be interested in your solution.
  41.  
  42.  
  43. Cheers,
  44.  
  45. Ronny Wichers Schreur
  46. ronny@cs.kun.nl
  47.