home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18836 < prev    next >
Encoding:
Text File  |  1992-12-23  |  800 b   |  28 lines

  1. Path: sparky!uunet!olivea!apple!voder!woodstock!news
  2. From: keith@torme.sharebase.com (Keith Chambless)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: A different C puzzle
  5. Message-ID: <1992Dec23.185348.19343@sharebase.com>
  6. Date: 23 Dec 92 18:53:48 GMT
  7. References: <768@ulogic.UUCP> <1992Dec23.092712.2408@sq.sq.com>
  8. Reply-To: keith@torme.sharebase.com (Keith Chambless)
  9. Organization: NCR/ShareBase Corporation
  10. Lines: 16
  11.  
  12. In article <1992Dec23.092712.2408@sq.sq.com> msb@sq.sq.com (Mark Brader) writes:
  13. >> > Write a [C] program that uses every valid character exactly once.
  14. >> I should think it would be rather difficult to use only one " ...
  15.  
  16. Best I could come up with is:
  17.  
  18. #
  19.  
  20. main()
  21. {
  22.     double *ABCDEFGHIJKLMNOPQRSTUVWXYZ[],
  23.            c_fghjkpqrstvwxyz = -!9 + 8.0 / 7 > 6 < 5 % 4 ? 3 : 2 & 1;
  24. }
  25.  
  26.  
  27. missing are ' " \
  28.