C中資料型別數值範圍解釋!!!
型別說明符 unsigned int 位元組數 2 ; 數的範圍 0 -- 2^16 - 1; (0 - 65535)
型別說明符 short int 位元組數 2 ; 數的範圍 -2^15 -- 2^15 - 1; (-32768 - 32767)
型別說明符 unsigned short int 位元組數 2 ; 數的範圍 0 -- 2^16 - 1; (0 - 65535);
型別說明符 long int 位元組數 4 ; 數的範圍 -2^31 -- 2^31 - 1;
型別說明符 unsigned long 位元組數 4 ; 數的範圍 0 -- 2^32 - 1;
型別說明符 char 位元組數 1 ; 數的範圍 -2^7 -- 2^7 - 1;
型別說明符 unsigned char 位元組數 1 ; 數的範圍 0 - 255;
型別說明符 double 位元組數 8 ; 數的範圍
型別說明符 float 位元組數 4 ; 數的範圍 -2^31 -- 2^31 - 1;