#include int main() { int i = 1; if (*((char *)&i) == 1) puts("little endian"); else puts("big endian"); return 0; }