Extended Types Formatted I/O (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Functions Index (C++)

The following table shows new format specifiers implemented in C++Builder for the printf and scanf family of functions. This implementation allows the input and output of 64-bit integers and provides greater I/O flexibility for other types.

Format Character Functionality




8-bit wide integer (char)


16-bit wide integer (short)


32-bit wide integer (long)


64-bit wide integer (__int64)

Note that the above table uses the %d format as an example. The I8, I16, I32, I64 prefixes can be used with the d, i, o, x, X formats, as well as the new L prefix previously allowed only on float to specify long double type.

See Also