Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!im4u!ut-sally!seismo!sundc!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.lang.c Subject: Re: Pointers and Arrays Message-ID: <513@hadron.UUCP> Date: Tue, 5-Aug-86 09:58:39 EDT Article-I.D.: hadron.513 Posted: Tue Aug 5 09:58:39 1986 Date-Received: Sat, 9-Aug-86 05:16:51 EDT References: <1242@ncoast.UUCP> <418@dg_rtp.UUCP> <1267@ncoast.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 22 Summary: Addr of array vs Addr of 1st element ????? I have seen several references to the address of an array vs. the address of the first element of the array. Would someone care to address what they think this difference is, aside from data type? I.e., it is clear that the types *int and *(int[]) should be different. But the values should be the same: int countdown[] = { 10, 9, 8, ... }; gives something like _countdown: => .word 10 .word 9 .word 8 ... The values of both addresses should be the address of the word '10'. Well, yes, in some theoretical architectures I've heard tell of pointers include arbitrary information on e.g. the size of the object. Any of these actually implemented? -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP} jsdy@hadron.COM (not yet domainised)