c program to check that whether computer on which u r working is little endian or big

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shaveta
    New Member
    • Aug 2006
    • 5

    c program to check that whether computer on which u r working is little endian or big

    Can anyone pls tell me how to write a program in c to check whether computer we are working on is little endian or big endian
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Assign a value to a multi byte int, then examine the values of the bytes at the ints memory location.

    Comment

    Working...