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 2 of 4.

Mohamed said:   1 decade ago
What is the use of using these two kind of methods?

Anusha said:   1 decade ago
Why is the concept of little or big endian followed? Why can't people stick on to 1 particular method following a standard what difference does it make?

Preeti said:   1 decade ago
Thank you kavitha:).

A.Vamsi krishna said:   1 decade ago
Thanks to all for this great analysis and Indiabix.

Shrikant said:   1 decade ago
Thanks Santosh.

Raghu said:   1 decade ago
Thank you kavitha.

Aishwarya gupta said:   1 decade ago
Thank you very much.

Manas Rajderkar said:   1 decade ago
Great! Santosh, and Krunal appreciable.

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

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


Post your comments here:

Your comments will be displayed after verification.