Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!uw-beaver!mit-eddie!ll-xn!ames!ucbcad!ucbvax!decvax!decwrl!pyramid!prls!philabs!pwa-b!mmintl!franka From: franka@mmintl.UUCP (Frank Adams) Newsgroups: comp.lang.c Subject: Re: Two dimensional arrays in C Message-ID: <2215@mmintl.UUCP> Date: Thu, 25-Jun-87 17:05:09 EDT Article-I.D.: mmintl.2215 Posted: Thu Jun 25 17:05:09 1987 Date-Received: Sun, 28-Jun-87 05:27:05 EDT References: <733@cod.UUCP> Reply-To: franka@mmintl.UUCP (Frank Adams) Organization: Multimate International, E. Hartford, CT. Lines: 14 Keywords: ? Summary: ... can't use dummy array bounds In article <733@cod.UUCP> murphys@cod.UUCP (Steven P. Murphy) writes: >The following example is what I would like to be able to do. Is it possible ? >... >matrix_stuff(a, b, array, x, y); > >int a, b, x, y; >double array[x][y]; No. Array bounds in C have to be constants. To do this, you would have to do the array arithmetic explicitly. Sorry. -- Frank Adams ihnp4!philabs!pwa-b!mmintl!franka Ashton-Tate 52 Oakland Ave North E. Hartford, CT 06108