Path: utzoo!mnetor!uunet!mcvax!dik From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.lang.c Subject: Re: Address of Array Message-ID: <377@zuring.cwi.nl> Date: 15 Dec 87 00:28:17 GMT References: <126@citcom.UUCP> <2550034@hpisod2.HP.COM> <1854@haddock.ISC.COM> <9735@mimsy.UUCP> <1445@houdi.UUCP> Organization: CWI, Amsterdam Lines: 29 Why is it that so many people cannot read and omit the saliant point when answering? To wit: In article <1445@houdi.UUCP> marty1@houdi.UUCP (M.BRILLIANT) writes: > In article <9735@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) writes: > > ... in the near future, one will be able to write the following: > > ... > > p = g() ? &z[0] : &z[2]; > > ... > > At present, it is necessary to code this using casts (because &z[0] > > elicits warnings or errors about & before array), or using .... > > Not so on the vax-785 with SV_R2 I'm logged in on now. I can write > ... > char *a, b[14]; > ... > a = &b[3]; > ... > without getting any complaints from the compiler. It does what I want, > too: skips the beginning of the array. > The declarations in the original article were: > int z[4][10]; > int (*p)[10]; and that makes a lot of difference! -- dik t. winter, cwi, amsterdam, nederland INTERNET : dik@cwi.nl BITNET/EARN: dik@mcvax