Wednesday, July 25, 2012

Little and BIG Endian




# include <stdio.h>
void main()
{
unsigned char test=0x01;
test=test<<1;
if(test)
{
     printf("This processor is little Endian");
}
else
{
    printf("This processor is Big Endian\n");
}
}
for more details visit
http://people.cs.umass.edu/~verts/cs32/endian.html

No comments:

Post a Comment