1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
foo (a) { return (a & (1 << 31)) != 0; } main () { if (foo (0)) puts ("foo"); else puts ("bar"); if (foo (~0)) puts ("foo"); else puts ("bar"); }