![]() We can interchange them using logical expressions. To do this we have to interchange the 1st and 4th bytes, and 2nd and 3rd bytes. In this section we will see how to convert little endian to big endian and vice versa. Sometimes the higher order bytes are stored first, in that case these are known as big endian, and sometimes the lower order bytes are stored first, then it is called little endian.įor example, if the number is 0x9876543210, then the big endian will be − In different architectures, the multi-byte data can be stored in two different ways. Before going to the actual discussion, we will see what is the big endian and the little endian? Here we will see how to convert Little endian value to Big endian or big endian value to little endian in C++. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |