home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- 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
- From: dnl@convex.is.macsch.com (David Lombard)
- Subject: Re: Question to test general C knowledge
- Message-ID: <1992Dec23.230512.15145@draco.macsch.com>
- Sender: usenet@draco.macsch.com (Usenet Poster)
- Organization: MacNeal-Schwendler Corp.
- References: <rfries.151@sceng.ub.com> <1992Dec18.093717.7661@jussieu.fr> <BzGoGn.A93@cck.coventry.ac.uk>
- Date: Wed, 23 Dec 92 23:05:12 GMT
- Lines: 20
-
- In article <BzGoGn.A93@cck.coventry.ac.uk> champion@cch.coventry.ac.uk (Alun) writes:
- >~ printf("%c", unix["abc"]);
- >
- >Why does this print 'b' ??
-
-
- cpp (on a Unix system) replaces `unix' with 1, thus the compiler sees
-
- 1["abc"]
-
- Is that better?
-
- Regards,
- DNL
-
- MY_COMMENTS = MY_OPINIONS = NOBODY_ELSES;
-
- David N. Lombard The first thing we do, The MacNeal-Schwendler Corp
- dnl@macsch.com Let's kill all the lawyers. 815 Colorado Blvd
- (213) 259-4911 II Henry VI, IV.ii Los Angeles, CA 90041
-