본문 바로가기

C++

Data types

728x90
  Alternate name size minimum value maximum value
byte UInt8 1 byte 0 255
singed byte Int8 1 byte -128 127
unsigned short UInt16 2  bytes 0 65535
short Int16 2 bytes -32768 32767
unsigned  integer UInt32 4  bytes 0 4,294,967,295
integer Int32 4 bytes -2,147,483,648 2,147,483,647
unsigned  long UInt64 8  bytes 0 18quintillion
long Int64 8 bytes -9 quintillion 9 quintillion
string - variable n/a n/a
char character 1 byte 0 255
boolean   1 byte(C, C++)
4 bytes(C#)
8 bytes(Java)
false(0) true(1)
float single 4 bytes -3.4×10^38 3.4×10^38
double   8 bytes 1.8×10^308 1.8×10^308

 

'C++' 카테고리의 다른 글

아스키코드와 유니코드  (0) 2025.01.30
프로그래밍 언어의 종류  (0) 2024.03.01
C++ 주석 쓰는 법  (1) 2024.02.24
C++ Standard Library란  (0) 2024.02.24
build, clean, rebuild, compile, run/start  (0) 2024.02.19