dynamically allocate a memory with integer array c code example Example: how to use malloc in c int* a =(int*)malloc(sizeof(int))