Why does printf return a value?

前端 未结 6 1836
自闭症患者
自闭症患者 2021-01-11 11:05

I know that printf returns a negative error or number of characters printed on success. Only reason to check this return value is if the execution of program s

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-11 11:29

    I, too have never used the return value. But beside the error check, you might count the number of characters which have been output, to make some sort of statistic, or limitation

提交回复
热议问题