摘要: 1:void *malloc(size_t size) 分配所需的内存空间,并返回一个指向它的指针。 char *str; str = (char *)malloc(15); strcpy(str, "hello world"); printf("str = %s\n", str); free(st 阅读全文
posted @ 2020-10-21 09:42 Monday1024 阅读(92) 评论(0) 推荐(0)