假設有一個struct如下所示: struct foo { char *a; int b; char c[20]; }; 當我們要用malloc配置記憶體時,通常會用下面的方式來作宣告:
確定! 回上一頁