所以說,在C語言,要回傳字串還是只能用全域變數或靜態修飾宣告,強制將記憶體位置 ... char srcstr[] = "hello"; char *dupstr = copystr(n,srcstr); puts(dupstr); ...
確定! 回上一頁