Showing posts with label little endian. Show all posts
Showing posts with label little endian. Show all posts

Wednesday, November 25, 2009

Whats your Endian-ness ?

int i= 0x1;

*((char*)&i) ? printf("###!Nemesis: LittleEndian\n"):printf("###!Nemesis: BigEndian\n");
printf("0x%x \n", *((char*)&i));