맛집탐방

C의 데이터 타입 크기 및 기억 범위 본문

정보처리기사

C의 데이터 타입 크기 및 기억 범위

cowbeaf 2020. 9. 11. 17:44
종류 데이터타입 크기 기억범위
문자 char 1Byte -128~127
부호없는 문자형 unsigned char 1Byte 0~255
정수 short 2Byte -32,768~32,767
int 4Byte -2,147,483,648~2,147,438,647
long 4Byte -2,147,483,648~2,147,438,647
long long 8Byte -9,223,372,036,854,775,808~
9,223,372,036,854,775,807
부호없는 정수형 unsigned short 2Byte 0~65,535
unsigned int 4Byte 0~4,294,967,295
unsigned long 4Byte 0~4,294,967,295
실수 float 4Byte 1.2×10^-38~3.4×10^38
double 8Byte 2.2×10^-308~1.8×10^308
long double 8Byte 2.2×10^-308~1.8×10^308

 

'정보처리기사' 카테고리의 다른 글

C 기타 표준 입출력 함수  (0) 2020.09.11
printf 함수  (0) 2020.09.11
C언어의 표준 입출력 함수의 개요  (0) 2020.09.11
Python의 데이터 타입 크기 및 기억 범위  (0) 2020.09.11
데이터타입  (0) 2020.09.11
Comments