how to free malloc memory in c code example
Example 1: allocate memory c
ptr = (castType*)calloc(n, size);
Example 2: how to use malloc in c
ptr = (cast-type*) malloc(byte-size)
ptr = (castType*)calloc(n, size);
ptr = (cast-type*) malloc(byte-size)