array mallocc code example
Example 1: c malloc array
#define ARR_LENGTH 2097152
int *arr = malloc (ARR_LENGTH * sizeof *arr);
Example 2: how to use malloc in c
ptr = (castType*) malloc(size);
#define ARR_LENGTH 2097152
int *arr = malloc (ARR_LENGTH * sizeof *arr);
ptr = (castType*) malloc(size);