malloc to create array code example
Example 1: c allocate array
int *array = malloc(10 * sizeof(int));
Example 2: how to use malloc in c
int* a =(int*)malloc(sizeof(int))
int *array = malloc(10 * sizeof(int));
int* a =(int*)malloc(sizeof(int))