which function should be used to fre the memory allocated y calloc() and malloc() code example
Example 1: free in c
the C library function void free(void *ptr)
deallocates the memory previously allocated by a call to calloc, malloc, or realloc.
Example 2: c malloc array
#define ARR_LENGTH 2097152
int *arr = malloc (ARR_LENGTH * sizeof *arr);