#include <stdio.h>
int w = 0x41000042;
int main()
{
if( ‘A’ == *(char*)&w ) {
printf(“First char in integer is %c “, *(char*)&w);
printf(“, so Big Endiann”);
} else {
printf(“First char in integer is %c “, *(char*)&w);
printf(“, so little endiann”);
}
}