How do I build an array of following type in C?
arr = [['S', 'NP+NP', 'S'],['S', 'NP+NUMBER', 'VP+VERB'],['S', 'VERB', 'NP']]
const char *strs[] = {"foo", "bar", "bletch", ...};
and you can access them like this
for(int i = 0; i < NUMBER_OF_STRINGS; i++) {
printf("%d: %s\n", i, strs[i]);
}
const char * or you'll probably have problem when editting itNUMBER_OF_STRINGS is actually optional in this case.