본문 바로가기
프로그래밍/C

C ] Data Types Range

by eteo 2023. 9. 15.

 

C type stdint.h type Bits Sign Range
char uint8_t 8 Unsigned 0 .. 255
signed char int8_t 8 Signed -128 .. 127
unsigned short uint16_t 16 Unsigned 0 .. 65,535
short int16_t 16 Signed -32,768 .. 32,767
unsigned int uint32_t 32 Unsigned 0 .. 4,294,967,295
int int32_t 32 Signed -2,147,483,648 .. 2,147,483,647
unsigned long long uint64_t 64 Unsigned 0 .. 18,446,744,073,709,551,615
long long int64_t 64 Signed -9,223,372,036,854,775,808 .. 9,223,372,036,854,775,807

 

 

C type IEE754 Name Bits Range
float Single Precision 32 -3.4E38 .. 3.4E38
double Double Precision 64 -1.7E308 .. 1.7E308

 

 

Reference : https://os.mbed.com/handbook/C-Data-Types

'프로그래밍 > C' 카테고리의 다른 글

윈도우 소켓 ] connect 비동기로 처리하기  (0) 2023.09.30
C] strstr 함수 구현  (0) 2023.09.15
extern "C" {}  (0) 2023.07.18
C, C++ ] system("pause") 대신 사용할 수 있는 방법  (0) 2023.07.11
C ] 포인터와 const  (0) 2023.05.30