/*
* you can make 2-d array like so
* This can work for integers well
* but not so well for strings. Kind of
* awkward actually
*/
char states[3][3] = {
{ 'a' , 'b' ,'\0' } ,
{ 'd' , 'e' , '\0' } ,
{ 'g', 'h', '\0' }
};
int num_states = 3;
for(i = 0; i < num_states; i++) {
printf("state %d: %s \n", i, states[i]);
}
return 0;
}