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