Passing string arrays requires more information ...
, , , int main(int argc, char *argv[]). , main() count, argc, argv[]. char *argv[] .
. , char *s[], .. - , func(), . C , . , (char * s [];) char (char * s;), , .
, :, func() s.
:
CAN ,
char *s[]={"this","is","an","array"};
, s , . , :
int size = sizeof(s)/sizeof(s[0]); //only works for char arrays, not char *
//and only when declared and defined in scope of the call
, char * s []... , . , char * s [];, , char * s, .
:
1) , - , , "%" "\ 0". .
2) , . (, main(...) printf(...))