Sure you can use an array to define the position. You have 2 choices...
1) If you know the positions already use a global array. 2) If you want to calculate positions and store them in an array, you will need to know how to use 'dynamic memory', with the functions 'malloc/calloc/free'.