Part of what sean is I think getting at is that this:
Code:
char mytable[2][3];
mytable[0][0] = 'a';
mytable[0][1] = 'b';
mytable[0][2] = 'c';
mytable[1][0] = '1';
mytable[1][1] = '2';
mytable[1][2] = '3';
Is almost equivalent to this:
Code:
char mytable[2][4] = { "abc", "123" };
Except I added a char so that these can be strings, since expressed this way they will get null terminated. You don't actually use any string functions on them, tho, and if that is intentional:
Code:
char mytable[2][3] = { {'a','b','c'}, {'1','2','3'} };
is fine.
I'm a little confused about why you don't just use the string model from your PHP tho:
Code:
char *traits[] = {
"Happy", "Sad", "Angry", "Hopeful",
"Outgoing", "Introverted",
"Tall", "Short", "Medium",
"Handsome", "Plain", "Ugly"
};
These are literals and cannot be changed but will work for this.