摘要:
我其实是有疑惑在里面, 下面会提到。首先来段代码:void test2(){ int i1 = ~0; int i2 = i1>>1; unsigned int u1 = ~0; unsigned int u2 = u1>>1; printf("int : %X -> %X, %d -> %d\n", i1, i2, i1, i2); printf("unsigned int: %X -> %X, %u -> %u\n", u1, u2, u1, u2);}/*** Print *****/ int : F 阅读全文
摘要:
INT_MAX (整型变量最大值) : 2147483647= (231-1) 2147483647= ~0U >> 1; 2147483647=0x7fffffff ; (十六进制) 阅读全文