- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Big Endian and Little Endian
All computers do not store the bytes that comprise a multi-byte value in the same order. Consider a 16-bit internet that is made up of 2 bytes. Two ways to store this value −
Little Endian − In this scheme, low-order byte is stored on the starting address (A) and high-order byte is stored on the next address (A + 1).
Big Endian − In this scheme, high-order byte is stored on the starting address (A) and low-order byte is stored on the next address (A + 1).
To allow machines with different byte order conventions communicate with each other, the Internet protocols specify a canonical byte order convention for data transmitted over the network. This is known as Network Byte Order.
By these definitions, a 32-bit data pattern, which is regarded as a 32-bit unsigned integer. The "high- Order" byte is the one for the largest powers of 2: 231, ..., 224. The "low-order" byte is the one for the smallest powers of 2: 27, ..., 20.
Example
0x12674592 in 32-bit representation can be stored as −
- Related Articles
- How do I convert between big-endian and little-endian values in C++?
- Endian order and binary files in C++
- Big Omega (Ω) and Big Thera (θ) Notation
- Maximize big when both big and small can be exchanged in C++
- Difference between IoT and Big Data
- Difference between Big Data and Hadoop
- Little Oh Notation (o)
- Have Nearbuy and Little apps been sold to Paytm?
- Difference between Data Mining and Big Data
- Difference between Big Data and Cloud Computing
- How Big Data and IoT are Connected?
- Taxes on Markets, Traders Big and Small
- C++ Program for quotient and remainder of big number
- Big Numbers in Python
- Big Oh Notation (O)
