#include "theworld"
Why is this illegal and what is the appropriate way to do this?
void try1(char test[][])
{
char c[10][10];
for(int i = 0; i < 10; i++)
strcpy(c[i], test[i]);
}
for(i = 0; i < 10; i++)
cout<<c[i]<<endl;
}
void main()
{
char c[10][10];
for(int i = 0; i < 10; i++)
{
strcpy(c[i], "TEST");
}
try1(c);
}