C++ 자료형의 크기, 범위
구분 Type Size 표현범위 기본형 void - - 문자형 char 1 byte -128 ~ 127 unsigned char 1 byte 0 ~ 255 wchar_t 2 byte 0 ~ 65,535 정수형 bool 1 byte 0 ~ 1 short 2 byte -32,768 ~ 32,767 unsigned short 2 byte 0 ~ 65,535 int 4 byte -2,147,483,648 ~ 2,147,483,647 unsigned int 4 byte 0 ~ 4,294,967,295 long 4 byte -2,147,483,648 ~ 2,147,483,647 unsigned long 4 byte 0 ~ 4,294,967,295 __int8 1 byte -128 ~ 127 __int16 2 byt..
2019. 7. 21.