Range Int In C

[Solved] Range Int In C | C - Code Explorer | yomemimo.com
Question : range int in c

Answered by : duy-ta

 ---- Data types in C ----
Data Type Memory (bytes) Range Format Specifier
short int 2 -2^15 to 2^15	%hd
unsigned short int 2 0 to 2^16	%hu
unsigned int 4 0 to 2^32	%u
int 4 -2^31 to 2^31	%d
long int 4 -2^31 to 2^31	%ld
unsigned long int 4 0 to 2^32	%lu
long long int 8 -2^63 to 2^63	%lld
unsigned long long int 8 0 to 2^64	%llu
signed char 1	-128 to 127	%c
unsigned char 1 0 to 255	%c
float 4	%f
double 8	%lf
long double 16	%Lf 

Source : | Last Update : Tue, 20 Jul 21

Answers related to range int in c

Code Explorer Popular Question For C