Endianess .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all,
I had read about Little Endian and Big Endian byte ordering from some resources on the net.
I had read that this doesnt affect char arrays and hence they can be used to overcome this problem.
My question is
char temp_char[2];
unsigned short temp_short;
Don't they finally end up to 2 bytes of physical memory ? and so why is it that it doesnt affect
char arrays . iam sure that i have missed something .Please throw some light on this one.


thank you.

cheers,
amith


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux