C语言里面字符串操作是关于格式的参数

来源:互联网 发布:网络号和主机号 编辑:程序博客网 时间:2024/04/28 08:06

 

specifierOutputExamplecCharacterad or iSigned decimal integer392eScientific notation (mantise/exponent) using e character3.9265e+2EScientific notation (mantise/exponent) using E character3.9265E+2fDecimal floating point392.65gUse the shorter of %e or %f392.65GUse the shorter of %E or %f392.65oSigned octal610sString of characterssampleuUnsigned decimal integer7235xUnsigned hexadecimal integer7faXUnsigned hexadecimal integer (capital letters)7FApPointer addressB800:0000nNothing printed. The argument must be a pointer to a signed int, where the number of characters written so far is stored. %A % followed by another % character will write % tostdout.
原创粉丝点击