int i = 259; /* 03010000 in Little Endian ; 00000103 in Big Endian */ char c = (char)i; /* returns 03 in both Little and Big Endian?? */
In
Endianness doesn't actually change anything here. It doesn't try to store one of the bytes (MSB, LSB etc).
char