728x90

 

기본 자료형의 종류

구분

자료형

크기(byte)

범위

문자형

char

1 byte

-128 ~ 127

unsigned char

1 byte

0 ~ 255

정수형

__int8

1 byte

-128 ~ 127

__int16

2 byte

-32,768 to 32,767

unsigned int

2 byte

-32,768 to 32,767

(signed) short (int)

2 byte

-32,768 to 32,767

unsigned short (int)

2 byte

0 ~ 65,535

__int32

4 byte

-2,147,483,648 ~ 2,147,483,647

(signed) int

4 byte

-2,147,483,648 ~ 2,147,483,647

unsigned int

4 byte

0 ~ 4,294,967,295

(signed) long (int)

4 byte

-2,147,483,648 ~ 2,147,483,647

unsigned long (ing)

4 byte

-2,147,483,648 ~ 2,147,483,647

__int64

8 byte

-9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807

수형

float

4 byte

3.4E +/- 38 (7 digits)

double

8 byte

1.7E +/- 308 (15 digits)

long double

8 byte

1.2E +/- 4932 (19 digits)




 자료형의 종류

DWORD

unsigned long

4 byte

bool

char

1 byte

BOOL

int

4 byte

BYTE

unsigned char

1 byte

WORD

unsigned short

2 byte

UINT

unsigned int

4 byte












+ Recent posts