Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!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: <8442@paris.ics.uci.edu> Date: 1 Mar 89 06:15:35 GMT References: <13068@steinmetz.ge.com> <102@servio.UUCP> <10138@socslgw.csl.sony.JUNET> <1783@dlvax2.datlog.co.uk> Sender: news@paris.ics.uci.edu Reply-To: nagel@blanche.ics.uci.edu (Mark Nagel) Organization: University of California, Irvine - Dept of ICS Lines: 15 In-reply-to: scm@datlog.co.uk ( Steve Mawer ) In article <1783@dlvax2.datlog.co.uk>, scm@datlog ( Steve Mawer ) writes: |In article <10138@socslgw.csl.sony.JUNET> diamond@diamond. (Norman Diamond) writes: |> |>When you assign 'x' to a character, you are assigning an int to a |>character. The reader knows that the type mismatch was intentional. | |Not if he knows the C language. A single character written within |single quotes is a *character constant*. This isn't an int. If you knew the C language, you'd know that a character constant *is* an integer. See K&R page 17 and 35. 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