I'm currently in the process of writing up a function that allocates two arrays of 100 integers each using this function.
The function has 2 arguments:
1) the # of elements it allocates
2) A pointer defined in main and passed by reference so that when the function allocates the array, the address of that array can be passed back to main.
I'm just not entirely sure I'm going about this the right way and would appreciate some direction via examples.
Note: First attempt is written in main TEMPORARILY