delorie.com/archives/browse.cgi | search |
From: | Erik Max Francis <max AT alcyone DOT com> |
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: | <Pine DOT GSO DOT 3 DOT 95 DOT 961215080543 DOT 22811A-100000 AT hops DOT cs DOT jhu DOT edu> |
NNTP-Posting-Host: | newton.alcyone.com |
Mime-Version: | 1.0 |
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"
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |