Name: Anonymous 2007-06-27 10:43 ID:Uo4E/xRf
I wrote it and i edited wikipedias article which had a terrible code and added mine, but i'm still not sure about my code, is it SCALABLE ENOUGH?
#include <stdio.h>
int main() {
union {
int s;
char c[sizeof(int)];
} un;
const char *endianess[[] = { "big endian", "little endian" };
un.s = (~(int)0) ^ (~(char)0);
puts(endianess[!un.c[0]]);
return 0;
}