Question

The following code on a 32 bit machine: int x= 0xAABBCCDD; print("%02x",(int) (* ((char *)(& x))&0xFF))...

The following code on a 32 bit machine:

int x= 0xAABBCCDD;

print("%02x",(int) (* ((char *)(& x))&0xFF))

will print out a ___________________ if the machine is big-end-in.

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

Answer:

will print out a ________AA___________ if the machine is big-end-in.


Explanation: 0x AABBCCDD will be stored as DD CC BB AA In the memory As Big Endian and when we do . & FF, Then last two bytes will be be the answer


Thanks, PLEASE UPVOTE

Add a comment
Know the answer?
Add Answer to:
The following code on a 32 bit machine: int x= 0xAABBCCDD; print("%02x",(int) (* ((char *)(& x))&0xFF))...
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