char* str=“HELLO”;
- 用法一:
puts(str);
---->HELLO
等价于printf("%s\n",str);
- 用法二:
puts("中日韩自贸区。。。");
---->中日韩自贸区。。。
等价于printf("中日韩自贸区。。。\n");
- 错误实例:
puts(“str的值为:”+str);❌
只能用printf("str的值为:%s",str);
来源:CSDN
作者:小桃呵呵
链接:https://blog.csdn.net/qq_41704436/article/details/104711105