X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: phaywood AT alphalink DOT com DOT au DOT STOP DOT SPAM (Peter "Shaggy" Haywood) Newsgroups: comp.lang.c,comp.os.msdos.djgpp Subject: Re: Pointer Blues Date: Fri, 25 Jan 2002 23:35:27 GMT Message-ID: <3c4f4ffd.1956516@news.alphalink.com.au> References: X-Newsreader: Forte Free Agent 1.11/32.235 NNTP-Posting-Host: d29-ds9-mel.alphalink.com.au X-Original-NNTP-Posting-Host: d29-ds9-mel.alphalink.com.au X-Trace: news.alphalink.com.au 1012001554 d29-ds9-mel.alphalink.com.au (26 Jan 2002 10:32:34 +1100) Organization: Client of Alphalink Australia Pty. Ltd. Lines: 29 X-Admin: admin AT alphalink DOT com DOT au X-No-Archive: Yes To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Groovy hepcat Jake was jivin' on Mon, 21 Jan 2002 05:36:57 GMT in comp.lang.c. Pointer Blues's a cool scene! Dig it! >Pointers are begining to drive me crazy. Pointers aren't hard to grasp. Why do people have so many problems with them? >Ok here's the problem, I needed two 2 dimensional arrays that are visual to >all >the functions. So I defined two 'pointer-to-pointer' varibles of type int, >thats what 2 dimensional arrays really are, 'pointers-to-pointer' right? Wrong! A pointer is a pointer is a pointer is a pointer is not an array. An array is an array is an array is an array is not a pointer. A pointer points. An array does not point. An array holds consecutive elements of a particular type. A pointer does not hold consecutive elements of a particular type. A pointer holds an address. An array does not hold an address (unless it is an array of pointer, of course). A 2D array is really an array of array. -- Dig the even newer still, yet more improved, sig! http://alphalink.com.au/~phaywood/ "Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker. I know it's not "technically correct" English; but since when was rock & roll "technically correct"?