From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Pointers, arrays and assignments Date: Sun, 15 Dec 1996 11:41:11 -0800 Organization: Alcyone Systems Lines: 20 Message-ID: <32B45457.41206C68@alcyone.com> References: NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Michael Phelps wrote: > Do you really need to declare it as "player *plyr[3]"? If so, you need > to > allocate memory for the pointers to pointer and for the pointers > themselves. No he doesn't. int *ai[3]; declares an array of 3 pointers to int. There is no need to dynamically allocate the array itself with this declaration. -- Erik Max Francis | max AT alcyone DOT com Alcyone Systems | http://www.alcyone.com/max/ San Jose, California | 37 20 07 N 121 53 38 W &tSftDotIotE | R^4: the 4th R is respect "You must surely know if man made heaven | Then man made hell"