Type | Size(byte) | Range | Remark |
---|---|---|---|
char/signed char | 1 | -128 to 127 | |
unsigned char | 1 | 0 to 255 | |
int | 4 | -2147483648 to 2147483647 | 약 ~2.1e9 ~ 2.1e9 |
unsigned int | 4 | 0 to 4294867295 | 약 4.2e9 |
long int | 8 | -9223372036854775808 to 9223372036854775807 | |
long long int | 8 | -(2^63) to (2^63) - 1 | |
float | 4 | -3.4e38 to 3.4e38 | Precision : 6~9 digits (보통 7) |
double | 8 | -3.4e308 to 3.4e308 | Precision : 15~18 digits (보통 16) |
long double | 8,12,16 | -1.7e4982 to 1.7e4982 | Precision : 18~21, 33~36 digits |
Data type 출처
https://boycoding.tistory.com/152">https://boycoding.tistory.com/152
https://www.tutorialspoint.com/cplusplus/cpp_data_types.htm
https://www.quora.com/On-what-does-the-size-of-data-type-depend
https://boycoding.tistory.com/151
마크다운 테이블 제네레이터
https://jbf-story.tistory.com/43