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: Re: Another C palindrome puzzle
- Message-ID: <BzGJt5.5nL@sci.kun.nl>
- Sender: news@sci.kun.nl (News owner)
- Nntp-Posting-Host: mac1k.cs.kun.nl
- Organization: University of Nijmegen
- X-Useragent: Nuntius v1.1
- References: <1992Dec17.223414.164558@evolving.com>
- Date: Fri, 18 Dec 1992 13:51:04 GMT
- Lines: 31
-
- Hello,
-
- Manus Hand, manus@evolving.com writes:
- >fjh@munta.cs.mu.OZ.AU (Fergus James Henderson) writes:
- >>
- >> Next challenge: Write a palindromic "hello world" program in C without
- >> using comments, #if, or #ifdef. I think it should be possible.
-
- Yes, this is possible. Hint: you can use #define to eleminate the garbage
- you get from reversing C code.
-
- # define ignore(s) /* empty string */
- ignore (egabrag si sihT)
-
- >Challenge accepted! As Henderson did, I assert that new-line characters are
- >not significant when determining palindromism (palindromicity?).
-
- In this puzzle, new-line characters are significant. Your solution should
- also compile with 'gcc -ansi -pedantic -Wall'.
-
- >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).
-
-
- Regards,
-
- Ronny Wichers Schreur
- ronny@cs.kun.nl
-