자료형의 크기

이유정·2023년 9월 26일

c언어

목록 보기
11/16
구분 자료형 크기(byte) 크기(bit)
기본형 void
문자형 (signed) char 1 byte 8 bit
unsigned char 1 byte 8 bit
wchar_t 2 byte 16 bit
정수형 bool 1 byte 8 bit
(signed short) int 2 byte 16 bit
unsigned short (int) 4 byte 32 bit
(signed) int 4 byte 32 bit
unsigned int 4 byte 32 bit
(signed) long (int) 4 byte 32 bit
unsigned long (int) 4 byte 32 bit
long long 8 byte 64 bit
dword long 8 byte 64 bit
__int8 1 byte 8 bit
__int16 2 byte 16 bit
__int32 4 byte 32 bit
__int64 8 byte 64 bit
실수형 float 4 byte 32 bit
(long) double 8 byte 64 bit

참조: https://myblog.opendocs.co.kr/archives/1230

profile
안녕하세요 이유정입니다. 반갑습니다.

0개의 댓글