+ 5

what is Little Endian and Big Endian?

explanation need;)

7th Aug 2019, 2:50 PM
Ashwin Raj
Ashwin Raj - avatar
2 ответов
+ 11
Endianness refers to the order of bytes inside a memory. Little endian stores most significant bytes in the higher memory address, while big endian stores most significant bytes in the lower memory address. So, if you have this number, in hexadecimal 0x12345678 This is how it's stored inside the memory Little endian: Increasing memory address ----> | 0x78 | 0x56 | 0x34 | 0x12 | Big endian: Increasing memory address ----> | 0x12 | 0x34 | 0x56 | 0x78 | You can refer to https://en.m.wikipedia.org/wiki/Endianness for more info
7th Aug 2019, 3:38 PM
Agent_I
Agent_I - avatar
+ 5
wrongly tagged it's related to Assembly language and not particularly C🙄
8th Aug 2019, 2:43 AM
Aditya
Aditya - avatar