how is data stored at bit level according to "Endianness" ?
- by bakra
I read about Endianness and understood squat...
so I wrote this
main()
{
int k = 0xA5B9BF9F;
BYTE *b = (BYTE*)&k; //value at *b is 9f
b++; //value at *b is BF
b++; //value at *b is B9
b++; //value at *b is A5
}
k was equal to "A5 B9 BF 9F"
and (byte)pointer "walk" o/p was "9F BF b9 A5"
so I get it bytes are stored…