Program Language/C & C++

[C++] 데이터 타입 (bool, char, integer, floating)

야곰야곰+책벌레 2021. 12. 16. 15:03
728x90
반응형
bool Boolean : true or false 의 두 가지 값
char Character : 글자 혹은 글을 사용
char : default type
signed char : like char. +/- 값을 가질 수 있다.
unsigned char : like char. - 값을 가질 수 없다.
wchar_t : unicode를 위한 larger character set.
char16_t : 16bit character set (UTF-16)
char32_t : 32bit character set (UTF-32)

Literals
int Integer : like char
int, signed int, unsigned int, short int, long int, long long int ...
int64_t : 64bit의 signed int
uint_fast_16_t : unsigned integer with 8bits
int_least32_t : signed integer with at least 32bits ( like int )

Literals
float
double
floating-point types.
float, double, long doube

Literals

 

728x90
반응형