home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18894 < prev    next >
Encoding:
Text File  |  1992-12-25  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: Another C palindrome puzzle
  5. Message-ID: <9236108.5647@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <1992Dec17.223414.164558@evolving.com> <BzGJt5.5nL@sci.kun.nl> <1992Dec21.000559.12081@thunder.mcrcim.mcgill.edu>
  9. Date: Fri, 25 Dec 1992 21:37:39 GMT
  10. Lines: 22
  11.  
  12. mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
  13.  
  14. >Ron Wichers Schreur <ronny@cs.kun.nl> writes:
  15. >> Manus Hand, manus@evolving.com writes:
  16. >>> Now I suppose I have to come up with the NEXT challenge.
  17. >>> Okaaaayyyy.... how about a palindromic "Hello world" program, with
  18. >>> no comments, #if's, #ifdef's, <<<OR #define's!>>>
  19. >> This looks a real challenge (I don't think there's a solution).
  20. >
  21. >I don't either.  Consider what the first token in such a program might
  22. >be.  I don't think it's possible for its reversal to be the last token.
  23.  
  24. Did you mean the first source token, or the first preprocessing token?
  25. Don't forget about things like trigraphs, and line continuations with
  26. backslashes. I'm almost certain that there *is* a solution. I've solved the
  27. first/last token difficulty, but the middle is proving tricky.
  28.  
  29. -- 
  30. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  31. This .signature virus is a self-referential statement that is true - but 
  32. you will only be able to consistently believe it if you copy it to your own
  33. .signature file!
  34.