第一種情況:name指標也申請了堆記憶體,此時需要釋放name指向的記憶體後再釋放結構體節點指標Student *p = (Student*)malloc(sizeof(Student))
確定! 回上一頁