memset函数
头文件
<string.h>
函数原型
memset(void *s,int ch,size_t n);
常用
int a[maxn];
memset(a, 0, sizeof(a));
int b[maxn][maxn];
memset(b, 0, sizeof(b));
更多
https://blog.youkuaiyun.com/glasier/article/details/88734627
本文介绍了C/C++中memset函数的基本用法及其头文件引入方式。通过示例展示了如何使用memset来初始化一维数组和二维数组,并提供了进一步学习的链接。
<string.h>
memset(void *s,int ch,size_t n);
int a[maxn];
memset(a, 0, sizeof(a));
int b[maxn][maxn];
memset(b, 0, sizeof(b));
https://blog.youkuaiyun.com/glasier/article/details/88734627

被折叠的 条评论
为什么被折叠?