Joseph Martin wrote:

> Anyway, what is the difference between a 'char **' and a 'char *'? I
> pretty much understand everything else, but this eludes me.

A `char *' is a pointer to a character. In the context of a string, it 
is a pointer to the first character in the string.

A `char **' is a pointer to a pointer to a character. In the context
of the previous program, both of the `index' variables are pointers to
the first pointer in an array of pointers, each of which is a pointer
to the first character of a string.

So:

index           is a `char **'
index[i]        is a `char *'
index[i][j]     is a `char'.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to