Little endian and Big endian in C programming
This is the most complex concept…. i have read enough on net and some books but still i was not getting this concept. i was not understanding how this will effect my c code. But i have did some experiments with some example code and tried to understand things. and here now i am going to share those examples.
In computing, the term endian or endianness refers to the ordering of individually addressable sub-components within the representation of a larger data item as stored in external memory (or, sometimes, as sent on a serial connection)
You can understand basic things about at
Little endian and Big endian
Big-endian
The most significant byte (MSB) value, which is 0Ah in our example, is stored at the memory location with the lowest address, the next byte value in significance, 0Bh, is stored at the following memory location and so on. This is akin to Left-to-Right reading in hexadecimal order.
Little-endian
The least significant byte (LSB) value, 0Dh, is at the lowest address. The other bytes follow in increasing order of significance.
Now lets see with some code
You may like to read this also....
2 Comments to “Little endian and Big endian in C programming”
Post comment
Search in this website
our sponsors
latest comments
- shinto peter on How to configure mail from localhost ( wamp ) using PHP?
- tammylleanne on Implementation limitation of c programming language
- Deepak on How to access/unblock songs.pk in india?
- Deepak on How to access/unblock songs.pk in india?
- prk on How to access/unblock songs.pk in india?
Find us on Facebook
Top Authors
Find us on stackoverflow
Polls
My Bookmarks
- Audio/video Recorder & player application based on MATLAB
- check dependency of your binary
- defination of all standard c programming language function
- Great Question-Answer on c programming
- know what your c code means
- Limition of c programming language
- List of all version of c programming language
- Online c compiler
- php freelancing work
- some more stuff on C programming language
- Volatile Keyword in Embedded System
- Write Android application in c language
For more details Please Check http://www.troveinterview.com/c-interview-questions-2/
Very nice information , heard the endian word first time in programming , thanks for the share