How will you find that your system has Little Endian representation or Big Endian representation.
int number = 1;
if ( *(char *)&number == 1)
printf ("Little Endian\n");
else
printf ("Big Endian\n");
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks