but here is the rub .....
if i do this
its as happy as anything and i get the obvious outputCode:int main()
{
int i;
char mystring[2][10] = {"hello you", "bye you"};
for (i = 0; i <2; i++)
{
printf("%s\n", mystring[i]);
}
}
however if i then change it to this
i get more warnings than i know what to do withCode:int main()
{
int i;
char mystring[2][10] = {"hello you", "bye you"};
for (i = 0; i <2; i++)
{
printf("enter upto 8 characters");
scanf(" %s", &mystring[i]);
}
}
coop