Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!helios.ee.lbl.gov!nosc!ucsd!orion.cf.uci.edu!uci-ics!blanche.ics.uci.edu From: nagel@blanche.ics.uci.edu (Mark Nagel) Newsgroups: comp.lang.c Subject: Re: Null revisited (briefly) Keywords: NULL Message-ID: <8493@paris.ics.uci.edu> Date: 1 Mar 89 22:09:12 GMT References: <13068@steinmetz.ge.com> <102@servio.UUCP> <10138@socslgw.csl.sony.JUNET> <1783@dlvax2.datlog.co.uk> <8442@paris.ics.uci.edu> <1207@hudson.acc.virginia.edu> Sender: news@paris.ics.uci.edu Reply-To: nagel@blanche.ics.uci.edu (Mark Nagel) Organization: University of California, Irvine - Dept of ICS Lines: 38 In-reply-to: gsh7w@astsun1.acc.virginia.edu (Greg Hennessy) In article <1207@hudson.acc.virginia.edu>, gsh7w@astsun1 (Greg Hennessy) writes: |Mark Nagel writes: |#If you knew the C language, you'd know that a character constant *is* |#an integer. See K&R page 17 and 35. |Picking up the Bible (K&R) and quoting without permission from page 17 We're going to be that way, hmm? |Any single character can be written between single quotes, to produce |a value equal to the numerical value of the character in the machine's |character set; this is called a {\it character constant}. So, for |example, 'A' is a character constant; in teh ASCII character set its |value is 65, the internal representation of the character A. Instead of quoting points that say nothing, why not take a look a bit further down on the page: "You should note carefully that '\n' is a single character, and in expressions is equivalent to a single integer; ..." |and page 35 says | |A {\it character constant\/} is a single character written within |single quotes, as in 'x'. as well as: "Character constants participate in numeric operations just as any other numbers, although they are most often used in comparisons with other characters." It's not clear that you are refuting my references above, although you have certainly left out of your quotations the relevant points. Mark Nagel @ UC Irvine, Dept of Info and Comp Sci ARPA: nagel@ics.uci.edu | Charisma doesn't have jelly in the UUCP: {sdcsvax,ucbvax}!ucivax!nagel | middle. -- Jim Ignatowski