home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18610 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.4 KB  |  45 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: Re: Another C palindrome puzzle
  5. Message-ID: <BzGJt5.5nL@sci.kun.nl>
  6. Sender: news@sci.kun.nl (News owner)
  7. Nntp-Posting-Host: mac1k.cs.kun.nl
  8. Organization: University of Nijmegen
  9. X-Useragent: Nuntius v1.1
  10. References: <1992Dec17.223414.164558@evolving.com>
  11. Date: Fri, 18 Dec 1992 13:51:04 GMT
  12. Lines: 31
  13.  
  14. Hello,
  15.  
  16. Manus Hand, manus@evolving.com writes:
  17. >fjh@munta.cs.mu.OZ.AU  (Fergus James Henderson) writes:
  18. >>
  19. >>   Next challenge: Write a palindromic "hello world" program in C without
  20. >>   using comments, #if, or #ifdef.  I think it should be possible.
  21.  
  22. Yes, this is possible. Hint: you can use #define to eleminate the garbage
  23. you get from reversing C code.
  24.  
  25.     # define ignore(s)  /* empty string */
  26.     ignore (egabrag si sihT)
  27.  
  28. >Challenge accepted!  As Henderson did, I assert that new-line characters are
  29. >not significant when determining palindromism (palindromicity?).
  30.  
  31. In this puzzle, new-line characters are significant. Your solution should
  32. also compile with 'gcc -ansi -pedantic -Wall'.
  33.  
  34. >Now I suppose I have to come up with the NEXT challenge.  Okaaaayyyy....
  35. >how about a palindromic "Hello world" program, with no comments, #if's,
  36. >#ifdef's, <<<OR #define's!>>>
  37.  
  38. This looks a real challenge (I don't think there's a solution).
  39.  
  40.  
  41. Regards,
  42.  
  43. Ronny Wichers Schreur
  44. ronny@cs.kun.nl
  45.