Mail Archives: djgpp/1997/06/09/10:21:45
On 8 Jun 1997, Paul Derbyshire wrote:
> I've seen char **argv and char *argv[] and am curious which is correct. Or
> are either correct?
Either is correct although since I have encountered compilers which
generate incorrect code for parameters which are arrays I always code
function parameters as pointers when I will be receiving an array.
Therefore, in the case of argv, I use 'char **argv' to avoid problems
porting.
Art S. Kagel, kagel AT bloomberg DOT com
- Raw text -