Checking whether the underlying architecture is little-endian or big-endian using C
Big-endian and little-endian are two formats to store multibyte data types into a computer’s memory. These two formats are also called network byte order and host byte order respectively. In a multibyte data type such as int or long or any other multibyte data type the right most byte is called the least significant byte and the left most byte is called the most significant byte. … Continue reading Checking whether the underlying architecture is little-endian or big-endian using C