sss - pointer to a pointer. Thus, an array of pointers cannot be directly bound to it. You can assign as follows using compound literals (which is a function of C99):
static struct number_and_strings my_list[] = { {12, (char*[]){"apple","banana","peach","apricot","orange",NULL}}, {34, (char*[]){"tomato","cucumber",NULL}}, {5, (char*[]){"bread","butter","cheese",NULL}}, {79, (char*[]){"water",NULL}} };
source share