Problem with array and function(s)

jonman5:
But I do want it to create an empty array and simply append to the array at the nth index starting from n=0.

No can do. Unless you use dynamic memory allocation (an advanced technique), you must declare the array size at compile time.