one more test
byte bByte[4];
byte bTest = 'X';
long lLong = 0L;
void setup(){
Serial.begin(9600);
for(int i = 0; i < 5; bByte[i]= char(i+65),i++); // change to i< 4 to see difference
Serial.print(bTest);
Serial.print(lLong, DEC);
}
void loop (){}
correct usage of array size gives correct result: i< 4 gives X0
code in a way how it is presented: i < 5 gives X69
But looking on code here is one extra byte bTest which contains X, which formally should changed to 5th value- e.g. 65+4 from the loop.
it means that memory alignment is different, not just byte after byte, byte order for types more than 2 bytes are stored differently.
Lost track here.... Smbdy knows answer?