Format specifiers (%d %f %c %s)
Placeholder according to value type.
Syntax
%d %f %c %s %x
Description
%d integer, %f float, %c single character, %s text, %x hexadecimal. %.2f for 2 decimal places.
Example
Loading editor…
Expected output
A 65 3.14
When to use?
Formatted output.