Let's say I'm creating a multidimensional array as follows.
const int array_temp[3][2][1] = {
[0] = {{0}, {1}},
[1] = {{2}, {3}},
[2] = {{4}, {5}},
};
This array represents 3 tables of 2 entries in each table.
How would I return a pointer to the start of one of the 3 tables? Would it be as follows?
return (void *)&array_temp[idx][0][0];