What does printf return?

后端 未结 4 1180
别那么骄傲
别那么骄傲 2020-12-01 21:18

Today in my interview, the interviewer asked: printf is a function and every function returns something; int, void, float, etc. Now what does printf return as it\'s a funct

4条回答
  •  有刺的猬
    2020-12-01 21:35

    int. On success, the total number of characters written is returned. On failure, a negative number is returned.

    See reference here

提交回复
热议问题