Ask a Question

 

Start Coding Today

   

GeeksQuiz

GeeksforGeeksIDE

Data Structures

Algorithms

Interview Experiences

C Programming

C++ Programming

Java Programming

GATE CS

Books

What is little and big endian ?

asked Nov 26, 2015 by Gaurav

1 Answer

0 votes

Little and big endian are two ways of storing multibyte data-types ( int, float, etc). In little endian machines, last byte of binary representation of the multibyte data-type is stored first. On the other hand, in big endian machines, first byte of binary representation of the multibyte data-type is stored first.

Suppose integer is stored as 4 bytes (For those who are using DOS based compilers such as C++ 3.0 , integer is 2 bytes) then a variable x with value 0x01234567 will be stored as following.

Memory representation of integer ox01234567 inside Big and little endian machines.

Read complete article at : http://www.geeksforgeeks.org/little-and-big-endian-mystery/

 

answered Nov 26, 2015 by Swanky

Please log in or register to answer this question.

...