char * charArray[][6][3] = {
{
{"2"}, //Size of 1st dimension
},
{//Section 1
{"5"}, //Size of each 2nd dimension
{"Option 1", "21", "0"},
{"Option 2", "493", "1"},
{"Option 3", "102", "0"},
{"Option 4", "531", "1"},
{"Option 5", "20", "0"},
},
{//Section 2
{"3"},
{"Something else", "50", "0"},
{"Any text can", "1654", "0"},
{"be in these", "1190", "0"},
},
};
Array is defined as above. It will need changing dynamically, but I'm not sure how the maximum size of each char array can be defined?
Reading values is working exactly as expected, but when trying to change any value, the microcontroller crashes.
charArray[1][2][3][0] = '0';
I've tried everything I can think of, and not having any luck.
Can anybody help me to understand what's going on, and if there is a better way to achieve this?