You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Use the j length modifier in calls to scanf() and printf()

j specifies that a following d, i, o, u, x, X, or n conversion specifier applies
to an argument with type pointer to intmax_t or uintmax_t.

Section 7.18.1.5, "Greatest-width integer types"
1 The following type designates a signed integer type capable of representing any value of
any signed integer type:
intmax_t
The following type designates an unsigned integer type capable of representing any value
of any unsigned integer type:
uintmax_t

  • No labels