example of dynamic memory allocation
Example 1: c malloc array
#define ARR_LENGTH 2097152
int *arr = malloc (ARR_LENGTH * sizeof *arr);
Example 2: how to use malloc in c
int* a =(int*)malloc(sizeof(int))
#define ARR_LENGTH 2097152
int *arr = malloc (ARR_LENGTH * sizeof *arr);
int* a =(int*)malloc(sizeof(int))