Fred <> writes:
> I have an array defined as
>
> char sArray[5][20] = {""};
>
> then I do :
> strcpy(sArray[0], "Text1");
> strcpy(sArray[1], "Text2");
> ...
>
> How can I pass this array to a function, to print it for example?
>
> I tried function(char* pArray[]) but it doesn't work...
Have a look at
http://c-faq.com/aryptr/pass2dary.html from the
comp.lang.c FAQ.
You may end up with more questions than answers, but that's fine --
any future questions you ask here will be of a more specific sort.
--
Ben.