Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: Adding two pointers Message-ID: <4096@ficc.uu.net> Date: 7 May 89 02:57:12 GMT References: <2765@buengc.BU.EDU> <563@lzaz.ATT.COM> <4093@ficc.uu.net> <922@garcon.cso.uiuc.edu> Organization: Xenix Support Lines: 13 In article <922@garcon.cso.uiuc.edu>, mcdaniel@uicsrd.csrd.uiuc.edu (Tim McDaniel) writes: > In this article, ... I show that Peter de Silva's card > analogy is misleading. It's just an analogy. But you do seem to misunderstand it. "two of clubs" is a pointer. It's the second element in an object based at the address "clubs". Pointer arithmetic between objects is meaningless. -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Business: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180. Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com.