位置:首頁 > 軟件操作教程 > 編程開發(fā) > C語言 > 問題詳情

C語言基礎(chǔ)知識(shí)—內(nèi)存分配

提問人:ylm發(fā)布時(shí)間:2020-09-25

(頭文件ANSI建議在stdlib.h但是一般都在malloc.h)

1void *malloc (unsigned size);//動(dòng)態(tài)內(nèi)存分配 .

2void *calloc (unsigned n,unsigned size); (分配n個(gè)size大小的空間).

3void *realloc(void *p,unsigned size);//p指向的空間改為size大小.

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部