Path: utzoo!attcan!uunet!microsoft!johnsc From: johnsc@microsoft.UUCP (John SCHWABACHER) Newsgroups: comp.lang.c Subject: Re: 2D array question Message-ID: <55636@microsoft.UUCP> Date: 4 Jul 90 00:36:26 GMT References: <3336.268f44b2@cc.nu.oz.au> <6311@wolfen.cc.uow.oz> Reply-To: johnsc@microsoft.UUCP (John SCHWABACHER) Organization: Microsoft Corp., Redmond WA Lines: 15 In article <6311@wolfen.cc.uow.oz> bernt@wolfen.cc.uow.oz (Bernt Ribbum) writes: | | However, (*(array+x+y*ydim)) is a structure, so | | (*(array+x+y*ydim)).a1 = value; | | may be used, or better still: | | (array+x+y*ydim)->a1 = value; | Or even better, (array+x+y*xdim)->a1 = value; ^