0

hello i have this code

int  main ()
{

               char * arrP1 [ ] = { "father", "mother", NULL},
                         * arrP2 [ ] = { "sister", "brother", "grandfather", NULL }, 
                       * arrP3 [ ] = { "grandmother", NULL},
                       * arrP4 [ ] = { "uncle", "aunt", NULL };
                   char ** arrPP [ ] = { arrP1, arrP2, arrP3, arrP4 , NULL};   

               printAllStrings( arrPP );
}

i am trying to pass arrPP as a parameter :

void printAllStrings ( char **A[] ) {

}

i am getting a warning error :
passing arg1 from incompatible pointer type .

what should i do ?

Edited by diafol: fixed formatting

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by emilio
0

the problem is that the function printAllStrings()
is on a different file.
the function is on one file
and i included this files header in my main

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.