Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: C Message-ID: <1989Feb28.170504.17123@utzoo.uucp> Organization: U of Toronto Zoology References: <1256@dukeac.UUCP> <9743@smoke.BRL.MIL> <9501@bloom-beacon.MIT.EDU> Date: Tue, 28 Feb 89 17:05:04 GMT In article <9501@bloom-beacon.MIT.EDU> yphotons@athena.mit.edu (Sun Warrior) writes: >I would like to know how to set an array (float) to a certain size... >... I would first like to be able to type in the size and >then set the array... You can't. With certain (unhelpful) exceptions, the dimensions of C arrays must be constants. You can get much the same effect using malloc() and pointers, although it is more complicated. -- The Earth is our mother; | Henry Spencer at U of Toronto Zoology our nine months are up. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu