// vim: ts=2 sw=2 et #include #include #include int main(int argc, char **argv) { int _4_octets = 1 + 2 * 256 + 3 * 256 * 256 + 4 * 256 * 256 * 256; char *ptr = (char*)&_4_octets; printf("octet 0 : %d\n", ptr[0]); printf("octet 1 : %d\n", ptr[1]); printf("octet 2 : %d\n", ptr[2]); printf("octet 3 : %d\n", ptr[3]); return EXIT_SUCCESS; }