2015年5月14日 星期四

[C] C Programming Dynamic Memory Allocation


FunctionUse of Function
malloc() Allocates requested size of bytes and returns a pointer first byte of allocated space
calloc() Allocates space for an array elements, initializes to zero and then returns a pointer to memory
free() dellocate the previously allocated space
realloc() Change the size of previously allocated space

Reference:

0 意見:

張貼留言