C語言malloc申請內存不釋放的後果

C語言,用malloc動態申請內存,不free,電腦會死機嗎 代碼 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> #include<stdlib.h> void malloc_no_free() { char *p; p=(char*)malloc(10000000); strcpy(p, "gfhf
相關文章
相關標籤/搜索