#include <stdio.h> int main(void) { int i = 0x80000000; ){ printf("i = %d\n", i); printf("32 bits.\n"); }else{ printf("i = %d\n", i); printf("64 bits.\n"); } ; }
[root@s8 c_test]# gcc -o testit testit.c
[root@s8 c_test]# ./testit
i = -2147483648
32 bits.