4 functions of dynamic memory allocation code example Example: allocate memory c ptr = (castType*)calloc(n, size);