是什么printf的回报? [英] What does printf return?
本文介绍了是什么printf的回报?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
今天我的采访,记者问:printf的是一个函数,每一个函数返回的东西; INT,无效的,浮动等。现在有哪些呢printf的回报,因为它是一个功能?
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 function?
推荐答案
INT
。上的成功,则返回写入的字符的总数。
如果失败,则返回一个负数。
int
. On success, the total number of characters written is returned.
On failure, a negative number is returned.
这篇关于是什么printf的回报?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文