內存四區——堆區分析

測試源碼:   #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> char *get_str() { char *tmp = (char *)malloc(100); if (tmp == NULL) { return NULL; } strcpy(
相關文章
相關標籤/搜索