看板 FreeBSD 關於我們 聯絡資訊
> 1. 請勿撰寫類似以下的程式碼 > char *foo() > { > char str[] = "12345"; 如果用static char str[] = "12345"; 這樣行嗎? 對固定長度的而需要被return的陣列/指標而言 用malloc()好還是用static好呢? > return str; > } -- <師大附中 BBS 站> bbs.hs.ntnu.edu.tw ★ From: sw169-71-109.adsl.seed.net.tw