@Dipankar: You are correct. The answer, like the answer to so many
questions, is "It depends."

Dave

On Aug 14, 1:11 pm, Dipankar Patro <[email protected]> wrote:
> Hi all,
>
> I have come across quite a few questions like
> "
> What is the way in which int m = 2 will be stored in memory?
> 2 0 0 0 or 0 0 0 2
> "
> Doesn't the answer depend upon the machine you are working on? I mean both
> are perfectly possible situations if you see.
> First option is little-endian, second one is big-endian.
>
> Which one should I probably go for in case I am not provided a "machine
> dependent" option?
>
> Reference:http://en.wikipedia.org/wiki/Endianness#Big-endian
> --
> ___________________________________________________________________________­________________________________
>
> Please do not print this e-mail until urgent requirement. Go Green!!
> Save Papers <=> Save Trees

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to