Message-ID: <33D1C704.64724AEC@gapeach.com> Date: Sun, 20 Jul 1997 04:06:28 -0400 From: Jacob Martin Reply-To: jake AT gapeach DOT com MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: passin a ptr to a 2D array Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: ip182.iainc.net Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I just can't seem to get the damn pointer procedural stuff to work: So, what's the correct way to set a pointer to the first address of mapmake, and then pass it to a function... Please fill in the blanks for me: void passit(int ___); /* pass the pointer,Do I use one or two *'s? int main() { int mapmake[100][100], __mmp; /*???????????????*/ mmp=&mapmake[0][0]; /*????????????*/ passit(int __mmp); } void passit(int __) { printf("whoopie!"); }