%a? Floating point number, hexadecimal number and p symbol (C99)
% A floating point number, hexadecimal number and p notation (C99)
%c One character (character)
%C? ISO wide character
%d signed decimal integer (int)(%ld, %ld: long integer data,% hd: output short integer. )
%e floating-point number, electronic notation
%E floating-point number, electronic notation
%f Single precision floating point number (default floating point number), decimal notation (%). nf? Where n represent n digits accurate to that decimal point. Decimal count)
%g automatically selects% f or% e according to the value.
%G automatically selects% f or% e according to the value.
%i signed decimal number (same as% d)
%o unsigned octal integer
%p? needle
%s corresponds to the string char *(s = =% hS = =% hS outputs narrow characters).
%S corresponds to wide string WCAHR*(%ws == %S outputs wide string).
%u unsigned decimal integer (unsigned integer)
%x unsigned hexadecimal integers with hexadecimal number 0f.
%X unsigned hexadecimal integers with hexadecimal number 0f.
%% ? Print a percent sign.
%I64d for INT64 or? Longlong
%I64u for UINT64 or? Unsigned long integer
%I64x is used for 64-bit 16 binary data.
①%: the opening symbol of format description, which is essential.
②-:Yes-indicates left-aligned output; If omitted, it means right-aligned output.
③0: 0 means that the specified space is filled with 0, and if omitted, it means that the specified space is not filled.
④ m.n: m refers to the domain width, that is, the number of characters occupied by the corresponding output item on the output device. N refers to accuracy. The number of decimal places used to describe the output real number. When n is specified for, the implied precision is n=6 bits.
⑤l or h:l means long type of integer and double type of real type. H is used to change the format character of an integer to a short integer.
References:
Web page link