set allocated memory to a number c code example Example: allocate memory c ptr = (castType*)calloc(n, size);