How to implement a program to determine the endianness of a machine?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ong khuan hwee
    New Member
    • Jan 2011
    • 1

    How to implement a program to determine the endianness of a machine?

    How to implement a program to determine the endianness of a machine and explanation of the code?
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    you could use a union of int and unsigned chars, have alook at

    Comment

    Working...