Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 448 Bytes

C语言中 printf 与 puts 有什么区别

::: tip Issue 欢迎在 Issue 中交流与讨论: Issue 173 :::

::: tip Author 回答者: shfshanyue :::

// 支持各种格式
int printf(const char *__restrict__ __format, ...);

// 只支持字符串输出到 stdout,适用于只有字符串时
int puts(const char *__s);
You can’t perform that action at this time.