Help with populating a simple array

I'm trying to figure out how to populate an array by using subroutines. We have begun procedures last week, and now this week we are moving onto arrays. College moves too fast sometimes. :(

What I'm trying to do is make a subroutine which will populate the entire array with the value read from the user. The value read from the user is stored in the variable named "intArraySizeEntered". I then have to pass the array as a parameter to the subroutine.

The code does not compile, and I have no clue about how to go about filling in the array.

If the user enters 6, I want to fill the array in up to 6. So 1, 2, 3, 4, 5, 6 but I have no clue how to format the for loop for this. I scrapped that version of the code and started from fresh because I had so much stuff in there that was confusing me. I know now have this as the new version:

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question …

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...