If I have those functions:
void main(void)
{
char *menu[] = {"data", "coming", "here"};
prints(**************); // here
printf("\n");
}
void prints(char **menu)
{
int a;
while(*menu)
{
printf("%s", **menu);
menu ++;
}
a = 0;
}
How to call prints function ???
prints(menu), but you forgot to add a NULL element at the end of yourmenuarray, since that's whatprintsneeds to know when to break the loop. Also it should beint main(), notvoid main(void)- and if your C compiler does not complain at the latter, throw it away and find a better one (e.g. gcc).void mainin the obfuscated C contest -- it automatically blinds people to all other problems