C Floating point arithmetic

jimc at ucla-cs.UUCP jimc at ucla-cs.UUCP
Tue Dec 10 08:39:58 AEST 1985


In article <322 at brl-tgr.ARPA> gwyn at brl-tgr.ARPA (Doug Gwyn <gwyn>) writes:
>> K+R says you can convert any pointer to an int and back again without
>> wrecking it.
>
>That is NOT what it says.

Mea culpa.  K+R A.14.4 (p.210) para. 2 says "Whether an int or a long is
required is machine dependent."  I was remembering the next paragraph, which
says that an "integer" converted from a pointer can be converted back to
the same pointer.

James F. Carter            (213) 206-1306
UCLA-SEASnet; 2567 Boelter Hall; 405 Hilgard Ave.; Los Angeles, CA 90024
UUCP:...!{ihnp4,ucbvax,{hao!cepu}}!ucla-cs!jimc  ARPA:jimc at locus.UCLA.EDU



More information about the Comp.lang.c mailing list