C printf #用法

# A `#\u0026#39; character specifying that the value should be printed in an ``alternate form\u0026#39;\u0026#39;. For c, d, and s, for- mats, this option has no effect. For the o formats the precision of the number is increased to force the first character of the output string to a zero. For the x (X) format, a non-zero result has the string 0x (0X) prepended to it. For e, E, f, g, and G, formats, the result will always contain a decimal point, even if no digits follow the point (normally, a decimal point only appears in the results of those formats if a digit fol- lows the decimal point). For g and G formats, trailing zeros are not removed from the result as they would oth- erwise be;For the x (X) format, a non-zero result has the string 0x (0X) prepended to it.


    推荐阅读