C51 printf format string

来源:互联网 发布:天天网络兼职是真是假 编辑:程序博客网 时间:2024/05/18 03:05
Type Argument TypeInput Format
d int Signed decimal number.
u unsigned intUnsigned decimal number.
o unsigned intUnsigned octal number.
x unsigned intUnsigned hexadecimal number using “0123456789abcedf”.
X unsigned intUnsigned hexadecimal number using “0123456789ABCDEF”.
f float Floating-point number formatted as
<[>-<]>dddd.dddd.
e float Floating-point number formatted as
<[>-<]>d.dddde<[>-<]>dd.
E float Floating-point number formatted as
<[>-<]>d.ddddE<[>-<]>dd.
g float Floating-point number using either the e or f format, whichever is more compact for the specified value and precision.
G float Floating-point number using either the E or f format, whichever is more compact for the specified value and precision.
c char A single character.
s * A string of characters terminated by a null character (‘\0′).
p * A generic pointer formatted as a linear address.
更多:C166_printf


 Posted by ian at 17:12  Tagged with: C51
原创粉丝点击