Name | Description | Notes | Source | Availability | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
atomic_ |
Atomic integer type | ? | T | <stdatomic.h> |
C11 | ||||||
INT_ |
Maximum value of
int_ |
L | M | <stdint.h> |
C99 | C11 | |||||
INT_ |
Minimum value of
int_ |
L | M | <stdint.h> |
C99 | C11 | |||||
int_ |
Fastest signed integer type with at least 16 bits | L | T | <stdint.h> |
C99 | C11 | |||||
PRIdFAST16 |
Decimal output conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIiFAST16 |
Decimal output conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIoFAST16 |
Octal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIuFAST16 |
Decimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIXFAST16 |
Hexdecimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
PRIxFAST16 |
Hexdecimal output conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNdFAST16 |
Decimal input conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNiFAST16 |
General input conversion specifier for
int_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNoFAST16 |
Octal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNuFAST16 |
Decimal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
SCNxFAST16 |
Hexdecimal input conversion specifier for
uint_ |
M | <inttypes.h> |
C99 | C11 | ||||||
UINT_ |
Maximum value of
uint_ |
L | M | <stdint.h> |
C99 | C11 | |||||
uint_ |
Fastest unsigned integer type with at least 16 bits | L | T | <stdint.h> |
C99 | C11 |
uint_
and
int_
are the fastest integer types of at least 16
bits.
uint_
is unsigned, and has the
range zero to
UINT_
, which is at least [0,
+65535].
int_
is signed, and has the range
INT_
to
INT_
, which is at least
[−32767, +32767].
The following macros can be used in the fmt
argument of printf
to print arguments of types
uint_
and
int_
:
PRIuFAST16
PRIoFAST16
PRIxFAST16
PRIXFAST16
PRIdFAST16
PRIiFAST16
The following macros can be used in the fmt
argument of scanf
to scan arguments of types
uint_
and
int_
:
SCNuFAST16
SCNoFAST16
SCNxFAST16
SCNdFAST16
SCNiFAST16
atomic_
is an alias for
_Atomic
uint_
.
atomic_
is an alias for
_Atomic
int_
.
Related types:
uint16_t
int16_t
uint_
least16_t int_
least16_t uint_
fast16_t int_
fast16_t
Property |
uint_ |
int_ |
|
---|---|---|---|
Minimum width (bits) | 16 | ||
Lowest value | 0 | ≤−32767 | |
Highest value | ≥+65535 | ≥+32767 | |
printf |
base 10 | "%"
PRIuFAST16 |
"%"
PRIdFAST16 or "%"
PRIiFAST16 |
base 8 | "%"
PRIoFAST16 |
||
upper-case base 16 | "%"
PRIXFAST16 |
||
lower-case base 16 | "%"
PRIxFAST16 |
||
scanf |
base 10 | "%"
SCNuFAST16 |
"%"
SCNdFAST16 |
base 8 | "%"
SCNoFAST16 |
||
base 16 | "%"
SCNxFAST16 |
||
base 16, 8 or 10 by prefix | "%"
SCNiFAST16 |