that accept size of an array N. A function dynamically allocate memory using calloc function for N elements, read elements into array and return a pointer to an array. code example
Example 1: how to use malloc in c
int* a =(int*)malloc(sizeof(int))
Example 2: how to use malloc in c
ptr = (cast-type*) malloc(byte-size)