It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




9年前关闭。




两者之间到底有什么区别?

最佳答案

fprintf格式化输出。也就是说,它读取并解释了
您提供并将其写入输出流的格式字符串
结果。

fputs只需将您提供的字符串写入指定的输出
流。
fputs()不必解析输入字符串即可确定您只想打印一个字符串。 fprintf()允许您在输出时进行格式化。

关于c - 什么时候应该使用fputs代替fprintf? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5690979/

10-12 20:33