我也测试了
0x80000000
0x80000080
...
0x80000000
0x80000080
...

[fly]存在即是合理[/fly]
#include <stdio.h> #include <limits.h> int main() { for (int n = INT_MIN; n < INT_MAX; n++) { if (n == (int)(float)n) { printf_s("0x%p\n", n); getchar(); } } }
#include<stdio.h> int main() { int n; for(n = 1; n; n++) { if(!(n & 0xFFFFFF)) printf("%d\n", n); if(n != (int)(float)n) { printf("n = %d\n", n); break; } } return 0; }