free(p)後指針問題

筆試很喜歡考這些   #include <stdio.h> #include <string.h> #include <stdlib.h> int main() {   char *str = (char *)malloc(100);   strcpy(str, "hello");   free(str);   if(str != NULL)     {       strcpy(str, "wo
相關文章
相關標籤/搜索