Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site desint.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!sdcrdcf!trwrb!desint!geoff From: geoff@desint.UUCP (Geoff Kuenning) Newsgroups: net.lang.c Subject: Re: ints vs. pointers Message-ID: <215@desint.UUCP> Date: Tue, 13-Nov-84 02:58:22 EST Article-I.D.: desint.215 Posted: Tue Nov 13 02:58:22 1984 Date-Received: Thu, 15-Nov-84 03:55:06 EST References: <80@physiol.OZ> Organization: his home computer, Thousand Oaks, CA Lines: 22 In article <80@physiol.OZ> john@physiol.OZ (John Mackin) writes: > > If two pointers of the same type are subtracted, the result is con- > verted (by division by the length of the object) to an int representing > the number of objects separating the pointed-to objects. > >This is clearly not necessarily possible if you have (say) 32-bit pointers >(with ALL 32 bits being address) and 16-bit ints. Nawww. The above discussion in K&R is talking about two pointers to similar objects in the same array. So all you have to do is limit array sizes to 65K. (Actually, 65K * sizeof (object)). Ridiculous, you say? Only Bozo the Clown would design such a machine, you say? I agree. The preceding message was brought to you by Intel Corporation. :-) -- Geoff Kuenning First Systems Corporation ...!ihnp4!trwrb!desint!geoff