数组的怎么第二次赋值?

使用sprintf 或者 strcpy/strncpy

比如:
char a[128] = {0};
sprintf(a, “hello world!”);

strcpy(a, “hello world!”);

发布了56 篇原创文章 · 获赞 3 · 访问量 2380

猜你喜欢

转载自blog.csdn.net/qq_40674996/article/details/102454731