#include<stdio.h>
int main()
{
char buf[20] = "hello";
puts(buf);//把buf内容输出到屏幕,自动在屏幕上家换行,是在屏幕上加,字符串本身没有变化
printf("%s", buf);//没有加换行符
char ch[20] = "hello world";
fputs(ch, stdout);//stdout代表标准输出
}
原文:https://www.cnblogs.com/best-you-articles-040612/p/14785806.html