How do you point to an array of arrays? I want to point to array[0] and increment a ptr to use *ptr to compare the letters of array[0].
Code:
int main(int argc, char *argv[])
{
char *array[] =
{
"Array one.\0",
"Array two.\0",
"Array three.\0"
};
char *ptr = array[0];
while ( *ptr != '\0' )
{
printf("%c", *ptr);
ptr++;
}
printf("\n");
}
Ok nevermind I just tested that and it works. Just ignore this.