#include #include #include int main() { unsigned char c, d; unsigned int x, y, z, m; x = 0x75af992b; y = 0x14a7de7e; z = 0x9138eec9; m = 0xff0ff0ff; c = 0x5b; d = (c << 4); printf("0: 0x%08x\n", (x << 16)); printf("1: 0x%08x\n", (y >> 12)); printf("2: 0x%08x\n", z & m); printf("3: 0x%08x\n", x & ~(m)); printf("4: 0x%08x\n", y | m); printf("5: 0x%x\n", (x ^ y) ^ x); printf("6: 0x%x\n", (y & 0xffff00) << 8); printf("7: 0x%x\n", (c ^ 0xff)); printf("8: 0x%x\n", d); printf("9: 0x%x\n", (c << 1)); return 0; }