반응형
Type | Size of type | Range |
char | 1byte | -127 to 127 |
unsigned char | 1byte | 0 to 255 |
signed char | 1byte | -127 to 127 |
int | 4bytes | -2147483648 to 2147483647 |
unsigned int | 4bytes | 0 to 4294967295 |
signed int | 4bytes | -2147483648 to 2147483647 |
short | 2bytes | -32768 to 32767 |
unsigned short | 2bytes | 0 to 65,535 |
signed short | 2bytes | -32768 to 32767 |
long | 8bytes | -2,147,483,648 to 2,147,483,647 |
signed long | 8bytes | same as long int |
unsigned long | 8bytes | 0 to 4,294,967,295 |
long long | 8bytes | -(2^63) to (2^63)-1 |
unsigned long long | 8bytes | 0 to 18,446,744,073,709,551,615 |
float | 4bytes | 1.2E-38 to 3.4E+38 |
double | 8bytes | 2.3E-308 to 1.7E+308 |
long double | 12bytes | 3.4E-4932 to 1.1E+4932 |
wchar_t | 2 or 4 bytes | 1 wide character |
Type | Size of type | |
BYTE | 1byte | unsigned char |
WORD |
2byte | unsigned short |
DWORD | 4byte | unsigned long |
반응형
'프로그래밍 > C, C++' 카테고리의 다른 글
파일 입출력.(fseek, ftell, fwrite, fread) (0) | 2017.09.29 |
---|---|
malloc과 new의 차이. (0) | 2017.09.07 |
2차원 배열 포인터 (0) | 2017.09.07 |
#pragma pack -2 (0) | 2017.09.07 |
#pragma pack - 1 (0) | 2017.09.07 |