[問題] linked list 的 free
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
GCC
問題(Question):
最後一個print印出的資料不是NULL
預期的正確結果(Expected Output):
我free完
都有令指標是NULL
所以全部的printf應該印出NULL
程式碼(Code):(請善用置底文網頁, 記得排版)
http://codepad.org/DpLZLIiR
補充說明(Supplement):
小弟我不知道是甚麼原因
可以幫一下忙
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.243.180.76
→
08/22 20:12, , 1F
08/22 20:12, 1F
→
08/22 20:14, , 2F
08/22 20:14, 2F
→
08/22 20:37, , 3F
08/22 20:37, 3F
→
08/22 20:38, , 4F
08/22 20:38, 4F
→
08/22 20:39, , 5F
08/22 20:39, 5F
→
08/22 20:46, , 6F
08/22 20:46, 6F
→
08/22 20:47, , 7F
08/22 20:47, 7F
→
08/22 20:52, , 8F
08/22 20:52, 8F
→
08/22 20:55, , 9F
08/22 20:55, 9F
→
08/22 21:31, , 10F
08/22 21:31, 10F
→
08/22 22:21, , 11F
08/22 22:21, 11F
→
08/22 22:22, , 12F
08/22 22:22, 12F
→
08/22 22:30, , 13F
08/22 22:30, 13F
→
08/22 22:30, , 14F
08/22 22:30, 14F