指针动态分配空间malloc()

#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char *p = (char*)malloc(sizeof(char)*100); if(NULL==p){ printf("the malloc is error\n");
相关文章
相关标签/搜索