well malloc() is for dynamic allocation of memory in C.
Functions: these allocate a space of memory for a pointer variable but here are some difference between them - one just hold the space on HEAP for the variable, one initialize that space with null value, and one hold another memory zone for the same variable.
Good luck with your C programming! :D
|