I'm storing some arrays like this:
uint8_t a[2][4][4] = {
{
{ 1, 1, 1, 1 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
},
{
{ 1, 1, 1, 0 },
{ 1, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
},
};
and, then I store an array of this arrays:
uint8_t ***data[5] = { 0, 0, (uint8_t ***)a, (uint8_t ***)b, (uint8_t ***)c};
so when I try to cout<<data[2][0][0][1];
it should print 1 but an read access violation exception occurs. why this doesn't work?