This where I keep the things I discover on C

How to return an array from a function!

Step 1

Initialize your array as follows:

type* name(paramater_type parameter,...)

Step 2

Prepare your array:

array_type* array_name = (array_type*)malloc(random_number * sizeof(array_type));

Step 3

With your array prepared, you can assign value as folows

array[place] = item;

array[place2] = item2;

array[place3] = item3;

Functions w/ defined

Be sure to have some sort of function in mind or pre-defined