C Programming - Floating Point Issues - Discussion

Discussion Forum : Floating Point Issues - General Questions (Q.No. 8)
8.
A float occupies 4 bytes. If the hexadecimal equivalent of these 4 bytes are A, B, C and D, then when this float is stored in memory in which of the following order do these bytes gets stored?
ABCD
DCBA
0xABCD
Depends on big endian or little endian architecture
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
36 comments Page 4 of 4.

James said:   1 decade ago
Thank you very much.

Moshii said:   1 decade ago
THAK YOU ALL, I have question. Why Little Endian and Big Endian?

Please give me a proper answer.

Akhilesh kumar yadav said:   1 decade ago
Santhosh Kumar M V concept is right.

Ramya said:   1 decade ago
Tq krunal for endian explanation.

Kingstan_BE_EIE said:   1 decade ago
Actually for all the compiler the basic data structure will vary according to the algorithm and architecture .

G.V.narayanan said:   1 decade ago
Explain clearly.


Post your comments here:

Your comments will be displayed after verification.