You've got two different things you're doing.
1) You've got a simple character array. This is fine if you just want one string. If you want an array of strings, it isn't.
2) You're trying to assign strings to each individual slot in your simple array. This won't work.
You need an array of pointers. Then you can make them point at strings. Or, you can use a multi-dimensional array.
Code:
char *names[5] =
{
"Bob",
"Sally",
"John",
"Juan",
"Mary"
};
int x;
for( x = 0; x < 5; x++ )
puts( names[x] );
Or...
Code:
char names[5][10] =
{
"Bob",
"Sally",
"John",
"Juan",
"Mary"
};
int x;
for( x = 0; x < 5; x++ )
puts( names[x] );
Something like that would suffice. Now, with the latter method, you'll need string functions to copy the contents in and out of the array if you want to change it, or else you'll have to do it a cell at a time.
Quzah.