Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!rutgers!att!cbnewsh!rkl From: rkl@cbnewsh.ATT.COM (kevin.laux) Newsgroups: comp.lang.c Subject: Re: Pointer Stew Keywords: Illegal Initialization Message-ID: <473@cbnewsh.ATT.COM> Date: 8 May 89 16:59:52 GMT References: <386@spec0.UUCP> Organization: AT&T Bell Laboratories Lines: 25 In article <386@spec0.UUCP>, blm@spec0.UUCP (Bharat Lal Madhyani) writes: [stuff deleted] > And as we all know that two > dimensional array are implemented through pointers, i.e > char a[10][20] means : > > a is an array of 10 pointers, and each element of > array a is an array of 20 characters. > > */ [stuff deleted] No! Array a is *NOT* an array of 10 pointers and does *NOT* mean it either. Array a is a two-dimensional array of chars, period. When you write: char *path[10]; *That* is an array of 10 pointers to chars. --rkl