Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between big endian form and little
endian form? write a code to convert big endian form to
little endian and vice versa..

Answers were Sorted based on User's Feedback



What is the difference between big endian form and little endian form? write a code to convert big..

Answer / peter

Little endian has least significant digit at far left.
Big endian has most significant digit at far left.

Is This Answer Correct ?    28 Yes 8 No

What is the difference between big endian form and little endian form? write a code to convert big..

Answer / raj

Little Endian ->LSB at lower address
Big Endian -> MSB at lower address
e.g:
if the value is 0x0A0B0C0D then
in case of LE storage will be
Address 1000 0D
Address 1001 0C
Address 1002 0B
Address 1003 0A

in case of BE storage will be
Address 1000 0A
Address 1001 0B
Address 1002 0C
Address 1003 0D

Marco to convert(this will convert from LE to BE or BE to
LE--> one for all :) )

#define CON(NUM) (NUM&0x000000FF)<<24|(NUM&0x0000FF00)<<8
|NUM&0x00FF0000)>>8 |(NUM&0xFF000000)>>24

Is This Answer Correct ?    17 Yes 3 No

What is the difference between big endian form and little endian form? write a code to convert big..

Answer / amit

the endianness of a bus determines whether the MSB is put
into the lowest address
(big-endian) or in the highest address (little-endian).

Is This Answer Correct ?    13 Yes 5 No

What is the difference between big endian form and little endian form? write a code to convert big..

Answer / vivek

in little endien lsb is at lower addess and in big endien
msb at lower address

Is This Answer Correct ?    1 Yes 0 No

What is the difference between big endian form and little endian form? write a code to convert big..

Answer / vish

Small correction in above macro.
'(' was missing in second line.

#define CON(NUM) (NUM&0x000000FF)<<24|(NUM&0x0000FF00)<<8
|(NUM&0x00FF0000)>>8 |(NUM&0xFF000000)>>24

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More C Interview Questions

What does %p mean?

0 Answers  


What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.

5 Answers   CCEM, TCS,


can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,


how is the examination pattern?

0 Answers   Wipro,


What is atoi and atof in c?

0 Answers  


What compilation do?

7 Answers   Geometric Software, Infosys,


What are the 32 keywords in c?

0 Answers  


What are enumerated types?

0 Answers  


How does pointer work in c?

0 Answers  


What is the purpose of & in scanf?

0 Answers  


we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?

4 Answers   HP, Wipro,


Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack

3 Answers  


Categories