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

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!data.nas.nasa.gov!mustang.mst6.lanl.gov!nntp-server.caltech.edu!draco.macsch.com!convex.is.macsch.com!dnl
  3. From: dnl@convex.is.macsch.com (David Lombard)
  4. Subject: Re: Question to test general C knowledge
  5. Message-ID: <1992Dec23.230512.15145@draco.macsch.com>
  6. Sender: usenet@draco.macsch.com (Usenet Poster)
  7. Organization: MacNeal-Schwendler Corp.
  8. References: <rfries.151@sceng.ub.com> <1992Dec18.093717.7661@jussieu.fr> <BzGoGn.A93@cck.coventry.ac.uk>
  9. Date: Wed, 23 Dec 92 23:05:12 GMT
  10. Lines: 20
  11.  
  12. In article <BzGoGn.A93@cck.coventry.ac.uk> champion@cch.coventry.ac.uk (Alun) writes:
  13. >~   printf("%c", unix["abc"]);
  14. >
  15. >Why does this print 'b' ??
  16.  
  17.  
  18. cpp (on a Unix system) replaces `unix' with 1, thus the compiler sees
  19.  
  20.     1["abc"]
  21.  
  22. Is that better?
  23.  
  24. Regards,
  25. DNL
  26.  
  27.                  MY_COMMENTS = MY_OPINIONS = NOBODY_ELSES;
  28.  
  29. David N. Lombard    The first thing we do,         The MacNeal-Schwendler Corp
  30. dnl@macsch.com      Let's kill all the lawyers.    815 Colorado Blvd
  31. (213) 259-4911      II Henry VI, IV.ii             Los Angeles, CA  90041
  32.