Question

Assume a 32-bit number 0x38103060 is being stored into memory location 0x10000000. What is in the...

Assume a 32-bit number 0x38103060 is being stored into memory location 0x10000000. What is in the memory location 0x10000002 if Big Endian or Little Endian is used?

Please provide calculation steps!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer to the above question is-

We know that the lowest address of the 32 bits(4 Bytes) is used for the address of a block of four contiguous bytes.

In 32 bits number there are 4 bytes. In computer there are two ways to be made about which byte of memory gets what part of number.

  • Little Endian
  • Big Endian

In Little Endian mechanism , the last byte(Least significant byte) of binary representation of the number is stored first.

In Big Endian mechanism, the first byte(Most significant byte) of binary representation of the number is stored first.

So we can clearly see(in above image) that at memory location 0x10000002 ,

In Big Endian 30 present.

In Little Endian 10 present.

Please comment if you have any queries related to the answer.

Please Upvote if answer was helpful.

Add a comment
Know the answer?
Add Answer to:
Assume a 32-bit number 0x38103060 is being stored into memory location 0x10000000. What is in the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT