#include "iostream"
#include "stdio.h"
#include "stdio_ext.h"
#include "stdlib.h"
#include "string.h"
using namespace std;
int main(int argc, char const *argv[])
{
char buf[] = "www\nqqqq";
char buf1[] = "www\0qqqq";
cout<<"buf="<<buf<<endl;
cout<<"-----"<<endl;
cout<<"buf1="<<buf1<<endl;
return 0;
}
输出时遇到字符'\n',输出字符会换行
输出时遇到字符'\0',其后字符不会输出
原文链接: https://www.cnblogs.com/iucforever/p/5274451.html
欢迎关注
微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍
- '区别" loading="lazy" src="https://www.ccppcoding.com/wp-content/uploads/2023020407005197.bmp"/>'区别" loading="lazy" class="j-lazy" src="https://www.ccppcoding.com/wp-content/themes/justnews/themer/assets/images/lazy.png" data-original="https://www.ccppcoding.com/wp-content/uploads/2023020407005197.bmp"/>
原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/230093
非原创文章文中已经注明原地址,如有侵权,联系删除
关注公众号【高性能架构探索】,第一时间获取最新文章
转载文章受原作者版权保护。转载请注明原作者出处!