ÓÃdev-c++±àÒëµÄ ÊÇc primer plus µÄÀýÌâ ³ÌÐòÈçÏ£º #include <stdio.h> #include <stdlib.h>
int main(void) { unsigned int un = 3000000000; /* 32λint */ short end = 200; long big = 65537; long long verybig = 12345678908426; printf ("un = %u and not %d\n",un, un); printf ("end = %hd and %d\n",end ,end); printf ("big = %ld and not %hd\n", big, big); printf ("verybig = %lld and not %d\n",verybig, verybig); system("PAUSE"); return 0; } ±àÒë³ö¾¯¸æ£º7 [Warning] this decimal constant is unsigned only in ISO C90 10[Warning] integer constant is too large for "long" type up 7 [Warning] this decimal constant is unsigned only in ISO C90 gccÓÐʱºòÒ²ÓÐÕâ¸ö¾¯¸æ£¬¼ÓÉÏ -std=c99 Ñ¡Ïî¿ÉÒÔͨ¹ý¡£ dev-c++ûÓùý
10[Warning] integer constant is too large for "long" type ÊÔÊÔÔÚ³£ÊýºóÃæ¼ÓÉÏLL long long verybig = 12345678908426LL;