I realise this has probably been done before but searching has turned up blank for this specific wrinkle.
If we want to define an array containing some strings, we can do:
char *strings[] = {"one","two","three"};
And if we want to define an array of arrays of strings, we can do:
char *strings[][] =
{
{"one","two","three"},
{"first","second","third"},
{"ten","twenty","thirty"}
};
But I can't seem to do this:
char *strings[][] =
{
{"one","two"},
{"first","second","third","fourth","fifth"},
{"ten","twenty","thirty"}
};
Doing that throws compiler errors.
(Examples from string initialization in multidimensional array)