if(p)

Dag Gruneau dg at sal.UUCP
Wed Nov 6 06:09:52 AEST 1985


In article <4173 at mordor.UUCP> jdb at mordor.UUCP (John Bruner) writes:
>Pointer to integer coercions are possible (just as conversions
>between floating-point and integers are possible).  However,
>K&R does not guarantee that all integers can be copied into a
>pointer.  It only guarantees that (given sufficiently large
>integers, conversion from pointer to integer to pointer will
>return the original pointer.


K&R does not guarantee anything. See p. 102, "on most machines
a pointer can be assigned to an integer and back without
changing it" that's far from a guarantee!

-- 

	Dag Gruneau
	Stockholm, Sweden

UUCP:  {seismo,decvax,philabs}!mcvax!enea!sal!dg
ARPA:  decvax!mcvax!enea!sal!dg at berkeley.arpa
       mcvax!enea!sal!dg at seismo.arpa



More information about the Comp.lang.c mailing list