Null revisited (briefly)
Greg Hennessy
gsh7w at astsun1.acc.virginia.edu
Thu Mar 2 00:48:59 AEST 1989
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
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.
and page 35 says
A {\it character constant\/} is a single character written within
single quotes, as in 'x'.
end quotations of K&R ISBN 0-13-110163-3 (aka first edition).
-Greg Hennessy, University of Virginia
USPS Mail: Astronomy Department, Charlottesville, VA 22903-2475 USA
Internet: gsh7w at virginia.edu
UUCP: ...!uunet!virginia!gsh7w
More information about the Comp.lang.c
mailing list