From: "Gil Myers" Subject: Re: char **argv vs. char *argv[] Newsgroups: comp.os.msdos.djgpp References: <5ndap9$mgd AT freenet-news DOT carleton DOT ca> Organization: The Unknown Programmers Message-ID: <01bc74bd$7df85940$e38033cf@pentium> NNTP-Posting-Host: 207.51.128.227 Date: 9 Jun 97 09:59:39 GMT Lines: 25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Paul Derbyshire wrote in article <5ndap9$mgd AT freenet-news DOT carleton DOT ca>... > > I've seen char **argv and char *argv[] and am curious which is correct. Or > are either correct? > They are both the same thing. The array syntax is interchangable with pointer arithmetic. Or at least should be if the compiler in question follows the language at all. Personally I have only ever used *argv[] There may be compilers out there that won't accept **argv, but if they don't then I wouldn't use them since they'd probably have other problems. I don't think either is more correct than the other, although *argv[] is most certainly used more. .