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