0

Well, i have function:

void func(char*[]);

Then, i have some array:

char[100][20] array;

Next try to call that function would cause a compilation error:

func(array);

so, what would your next possible actions may be?

user3808059
  • 373
  • 2
  • 15

1 Answers1

0

The argument declaration char*[] is an array of pointers, but you need to have it as a pointer to an array, i.e. char(*)[].

Some programmer dude
  • 400,186
  • 35
  • 402
  • 621