How to use function in C with array of strings? My code:
void test(char **a){
printf("%s", a[0]);
}
int main(){
char b[10][10];
strcpy(b[0],"abc");
strcpy(b[1],"dfgd");
test(b);
return 0;
}
How to make this example of code work?
test. I'm quite surprised that it didn't issue a warning on the linetest(b). Changechar **atochar a[][10].