I have several byte arrays and an array of that byte arrays.
I need to get the size of the byte array in a certain index.
byte A[]={B01111110,B10001000,B10001000,B10001000,B01111110};
byte B[]={B11111110,B10010010,B10010010,B10010010,B01101100};
byte gamma[]={B11111110,B10000000,B10000000,B10000000,B10000000};
byte *test[]={A,B,gamma}
Serial.println(sizeof(gamma));
Serial.println(sizeof(test[2]));
The first serial pront gives 5 that is correct the second give 2(probably the size of the pointer).
How can i get the correct result cause i want to use the test in a for loop or i will have to use nested else if.