Lets say I have the following code:
char *array[] = {"one", "two", "three"};
char *(*arrayPtr)[] = &array;
How do I iterate over array? I've tried doing this but doesn't work:
for(int i = 0; i < sizeof(array)/sizeof(array[0]); i++) {
printf("%s\n", (*arrayPtr + i));
}
array[i]can't be used by you?&array, you are probably wrong.