- 博客(2)
- 收藏
- 关注
原创 C malloc
#include #include void main() { char *p = (char* )malloc(10*sizeof(char)); printf("%d\n",*p); //结果:0 malloc分配内存时会默认初始化为0 return; }
2017-11-14 21:38:40 233
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
#include #include void main() { char *p = (char* )malloc(10*sizeof(char)); printf("%d\n",*p); //结果:0 malloc分配内存时会默认初始化为0 return; }
2017-11-14 21:38:40 233
TA创建的收藏夹 TA关注的收藏夹
TA关注的人