+ Reply to Thread
Results 1 to 2 of 2

Thread: Little Endian or Big Endian

  1. #1
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321

    Little Endian or Big Endian

    How will you find that your system has Little Endian representation or Big Endian representation.

  2. #2
    rajukonda Guest
    int number = 1;

    if ( *(char *)&number == 1)
    printf ("Little Endian\n");
    else
    printf ("Big Endian\n");

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts