c格式指定器

2022-05-07

以下示例是关于Whatever中包含c格式指定器用法的示例代码,想了解c格式指定器的具体用法?c格式指定器怎么用?c格式指定器使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:c format specifiers源码类型:Whatever
%c			Character
%d			Signed integer
%e or %E	Scientific notation of floats
%f			Float values
%g or %G	Similar as %e or %E
%hi			Signed integer (short)
%hu			Unsigned Integer (short)
%i			Unsigned integer
%l or %ld or %li	Long
%lf			Double
%Lf			Long double
%lu			Unsigned int or unsigned long
%lli or %lld	Long long
%llu		Unsigned long long
%o			Octal representation
%p			Pointer
%s			String
%u			Unsigned int
%x or %X	Hexadecimal representation
%n			Prints nothing
%%			Prints % character

本文地址:https://www.itbaoku.cn/snippets/785141.html