Adding two pointers

Peter da Silva peter at ficc.uu.net
Sun May 7 12:57:12 AEST 1989


In article <922 at garcon.cso.uiuc.edu>, mcdaniel at 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 at ficc.uu.net, +1 713 274 5180.
Personal: ...!texbell!sugar!peter, peter at sugar.hackercorp.com.



More information about the Comp.lang.c mailing list