What is c printf

前端 未结 3 1254
野趣味
野趣味 2021-01-11 16:40

I\'m curious:

If you do a printf(\"%f\", number); what is the precision of the statement? I.e. How many decimal places will show up? Is this compiler de

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-11 17:11

    The default precision for %f is 6 digits (see ISO C99 specification, 7.19.6.1/7).

提交回复
热议问题