C data types - Wikipedia
C data types - Wikipedia
short
short int Short signed integer type. Capable of containing at [SHRT_MIN,
16 %hi or %hd —
signed short least the [−32 767, +32 767] range.[3][a] SHRT_MAX]
signed short int
unsigned short Short unsigned integer type. Contains at least the [0,
16 %hu —
unsigned short int [0, 65 535] range.[3] USHRT_MAX]
int
Basic signed integer type. Capable of containing at [INT_MIN,
signed 16 %i or %d none[8]
least the [−32 767, +32 767] range.[3][a] INT_MAX]
signed int
long
long int Long signed integer type. Capable of containing at [LONG_MIN,
32 %li or %ld l or L[8]
signed long least the [−2 147 483 647, +2 147 483 647] range.[3][a] LONG_MAX]
signed long int
unsigned long long Long long unsigned integer type. Contains at least the both u or
[0,
[0, 18 446 744 073 709 551 615] range.[3] Specified since 64 %llu
ULLONG_MAX]
U and ll
unsigned long long int
the C99 version of the standard. or LL[8]
Converting
Real floating-point type, usually referred to as a single- from
precision floating-point type. Actual properties
unspecified (except minimum limits); however, on most text:[d]
float systems, this is the IEEE 754 single-precision binary %f %F f or F
floating-point format (32 bits). This format is required %g %G
by the optional Annex F "IEC 60559 floating-point %e %E
arithmetic".
%a %A
a. The minimal ranges [−(2n−1−1), 2n−1−1] (e.g. [−127,127]) come from the various integer representations allowed by
the standard (ones' complement, sign-magnitude, two's complement).[4] However, most platforms use two's
complement, implying a range of the form [−2m−1, 2m−1−1] with m ≥ n for these implementations, e.g. [−128,127]
https://en.wikipedia.org/wiki/C_data_types 2/9