c/c++動態內存申請與釋放

1,C中內存申請有哪些(標準庫函數) 函數名數組 函數原型 做用 例子 二維數組的申請,釋放 malloc void * malloc(size_t size) 動態內存的申請安全 函數自己不知內存類型,關心內存的總字節數函數 int * p =(int *)malloc(sizeof(int)* length); (1)INT ** P =(INT **)的malloc(的sizeof(INT
相關文章
相關標籤/搜索