What is the difference between

前端 未结 4 631
孤街浪徒
孤街浪徒 2020-12-01 14:08

I saw these two parameters in a C example in a C book but the author didn\'t elaborate what the difference between the two are. I know that %f specifies that a

4条回答
  •  臣服心动
    2020-12-01 14:41

    The width modifier in %lf is gracefully ignored by printf(). Or, to be more accurate, %f takes a double - varargs will always promote float arguments to double.

提交回复
热议问题